Hello,
i'am study electrical engineering. I Have the evaluation board MCBSTR9 from Keil with STR9-11x processor. The HTTP Demo works fine.
My interesting is the following:
--> HTTP Pages shall be loading from the SD Card.
My Problem:
In some threads other peoples talk about the file "HTTP_uif.c" to solve the problem but i didn't find it anywhere on my Keil installatin disk or Harddrive installation path.
My Question:
1.) Where can i find the File? 2.) Have anybody a project where my interested wishes are included or can help me to import and manage the "MCBSTR9_Http_demo" to work with it.
Please help me.....
Thank your for every people help.
Christian
To do what you describe, You need two things:
1. A TCP/IP stack (including HTTP Server);
2. A file system to access files on the SD Card
Neither of these, I think, is free from Keil.
See http://www.keil.com/forum/18482/ for some suggested light-weight, free TCP/IP stacks - and note that a version of NicheLite is also available for ST.
For a free & lightweight FAT filesystem, see elm-chan.org/.../00index_e.html
If you look on ST's site (if you can bear it), they may well have an example that does what you require using such free components.
A bit of googling should find plenty of others...
i have solved many of my problems.
But one problem/ maybe it can be that i think in the wrong way is to cast a pointer into a string.
file : HTTP_CGI.c line 170
var = (U8 *)alloc_mem (40); do_format = __FALSE; do_delete = __FALSE; do { /* Parse all returned parameters. */ dat = http_get_var (dat, var, 40); if (var[0] != 0) { /* Parameter found, returned string is non 0-length. */ if (str_scomp (var, "label=") == __TRUE) { str_copy ((U8 *)label, var+6); /* Convert 'label' to upper case. */ for (p = (U8 *)&label; *p; p++) { *p = toupper (*p); } } else if (str_scomp (var, "format=yes") == __TRUE) { do_format = __TRUE; } else if (str_scomp (var, "delete=yes") == __TRUE) { --> Hear i need a variable with the full data of the variable "var"(pointer alloc mem) as string.
I have no idea how it can do this... Maybe a loop over the pointer!!!!?????
thanks
I'm not sure what you mean by that?
In 'C', a string is just an array of char, with a NUL marking the end.
There is no type in 'C' which "holds the full data" of an array - the array name is, effectively, just a pointer to the 1st element.
This is textbook stuff - nothing specifically to do with Keil
c-faq.com/.../index.html
publications.gbdirect.co.uk/.../
http://www.keil.com/books/