MDK-ARM Keil, MDK-ARM Datasheet - Page 80

KIT REALVIEW MCU DEVELOPMENT

MDK-ARM

Manufacturer Part Number
MDK-ARM
Description
KIT REALVIEW MCU DEVELOPMENT
Manufacturer
Keil
Type
Compiler and IDEr
Datasheets

Specifications of MDK-ARM

For Use With/related Products
ARM MCUs
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
80
When the project is built, the three web-content files are parsed and their contents
are stored as C arrays in the file
const U8 index_html [] =
"<html> <head> <title>HTML Example</title></head>\r\n"
"<body>\r\n"
"<embed src=\"sound.wav\" autostart=\"true\" hidden=\"true\">\r\n"
"<p>First Emdedded Web Server</p>\r\n"
"<p><img src=\"Keil_logo.gif\">\r\n"
"<embed src=\"sound.wav\" autostart=\"true\" hidden=\"true\"></p>\r\n"
"</body>\r\n"
"</html>\r\n"
};
When a web browser connects to the server and requests an HTML page, a
simple “file system” is used to locate the correct array. The contents of the array
are then returned to the browser, which in turn displays the contents to the user.
const struct http_file FileTab [FILECNT] =
};
To make an active web server, you simply add the
rebuild the project. This approach embeds the web server content as part of your
application. As it does not use a full file system, you can build a very small web
server application that will fit within the Flash memory of a small
microcontroller. However, once the application is built, it is not possible to
update the content of the HTML pages. If you need to change the HTML content
of a deployed web server, it is possible to store the HTML pages within the RL-
Flash file system. They then can be updated locally or remotely via the TFTP
server.
Exercise: First Web Server
This exercise configures a minimal Web Server with a single page of HTML.
{"index.html", (U8 *) &index_html, 255},
{"sound.wav", (U8 *) &sound_wav, 8903},
{"keil_logo.gif", (U8 *) &keil_logo_gif, 4637},
{
WEB.c
.
{
Web.c
Chapter 4. RL-TCPnet Introduction
file to your project and

Related parts for MDK-ARM