Versions: C30: v3.30b Mplab: v8.73 1, I've downloaded and installed the current version of the TCP/IP Stack (v5.36). 2, I've copied the replacement files. 3, I've added file paths, detailed in SD card web server demo page (http://dangerousprototypes.com/docs/SD_ ... erver_demo) At this time the most of the files are not found. I try to compile it. Maybe it's needed to getting work these path changes. No success. Restart Mplab and still lot of files not found. 4, Comment out the second "{TCP_PURPOSE_HTTP_SERVER, TCP_ETH_RAM, 200, 200},", reduce the MAX_HTTP_CONNECTIONS 2 to 1 5, Remove LegacyHTTPApp.c and HTTP.c46, In MainDemo.h replace the line #define SaveAppConfig() NOP() with #define SaveAppConfig(dummy) Nop(). Compile and still not found. Restart Mplab, nothing changed. Start thinking what's the problem? The project directory is: C:Microchip Solutions v2011-06-02TCPIPDemo App MDD Maybe because of "v2011-06-02" is this file not found problem. Rename the directory to: C:MS SDTCPIPDemo App MDD Correct the search paths (step 3). Restart Mplab, compile and still not working! Here is my screenshot: http://https://picasaweb.google.com/lh/photo/SPPm8Ff81Tk0_cil4ZWC1w?feat=directlink If I remember right I could solve this problem only with installing the v5.20 Stack (by the eeprom version).
Sorry I didn't noticed the second page... I tried it, but the pic still freezes. I use now two SD cards: 1GB Transcend, 2GB Kingston. Yesterday I installed a new copy of the Stack (V5.20) and made the initial changes. I can see with the ethernet discoverer the webplatform, but when I open it in my browser (chrome) it freezes. Currently I've no idea what's the problem, except the SD cards. Should I buy a new one? (I bought my SD card approx 4 years ago) I followed your instructions step by step in this topic: MicroChip demo pages functionality I were succesfull, except this SD card project. Other: I asked it in other topic: I writed a lot of C code to PIC, but this MPLAB C30 programming absolutely new to me. Is there any basic introduction? How to use ADC, PWM, timers, etc? I used CCS and its help were really useful. Thank you!
Please write down exactly how did you enable the AD PIN! In which file what I have to modificate. I writed a lot of C code to PIC, but this MPLAB C30 programming absolutely new to me. Is there any basic introduction? How to use ADC, PWM, timers, etc? I used CCS and its help were really useful. Thank you!
I didn't change it, but it wasn't any number in the Heap size. Now I writed 512, compiled and finally build succeeded! Thank you very much for your help! But the PIC freezes, when I try to open the index.htm file (this is the only file on SD card, and I formatted the card with SDFormatter V2.0.0.3) Probably because this code don't like my SD card... With the FreeRTOS SD card webserver worked. But it freezed too after the opening or downloading one file.
Thanks for your reply! But I am not sure I've right understand it. So please check my options: I wanted to link my screenshot about MPLAB, but I couldn't, because I'm a new user... I write here the included folders: In Include Search Path: C:Microchip SolutionsMicrochipTCPIP Stack C:Microchip SolutionsTCPIP MDD Demo App C:Microchip SolutionsMicrochipInclude . ..MicrochipInclude %PROGRAMFILES%MicrochipMPLAB C30include
I've downloaded and installed this library and made the same changes except 2) and 3). Now I have the following error message:
Quote
In file included from C:/Microchip Solutions/Microchip/Include/TCPIP Stack/TCPIP.h:284, from MainDemo.c:30: C:/Microchip Solutions/Microchip/Include/TCPIP Stack/Helpers.h:64: error: conflicting types for 'ultoa' c:/program files (x86)/microchip/mplabc30/v3.30b/bin/bin/../../include/stdlib.h:91: error: previous declaration of 'ultoa' was here In file included from C:/Microchip Solutions/Microchip/Include/TCPIP Stack/FileSystem.h:59, from C:/Microchip Solutions/Microchip/Include/TCPIP Stack/TCPIP.h:369, from MainDemo.c:30: C:/Microchip Solutions/Microchip/Include/MDD File System/FSIO.h:42:22: error: FSconfig.h: No such file or directory In file included from C:/Microchip Solutions/Microchip/Include/MDD File System/FSIO.h:47, from C:/Microchip Solutions/Microchip/Include/TCPIP Stack/FileSystem.h:59, from C:/Microchip Solutions/Microchip/Include/TCPIP Stack/TCPIP.h:369, from MainDemo.c:30: C:/Microchip Solutions/Microchip/Include/MDD File SystemSD-SPI.h:41:22: error: FSconfig.h: No such file or directory
Very annoying message:
Quote
FSconfig.h: No such file or directory
In the solution explorer (called in other compilers, the window where the source files are listed) clicked (right click) I to the FSconfig.h then locate missing file and browsed the file c:Microchip SolutionsTCPIP MDD Demo AppFSconfig.h F10 and got the same error message. Any idea? What am I doing wrong?
I bought the Web Platform V1.1. It works fine with the precompiled demo application (MCstackDemo). I have compiling problem with the SD card demo application. I'm using TCP/IP STACK V5.31, C30 compiler v3.30. I made the following changes: 1) Put the replacement files in this folder into the Microchip MDD HTTP demo // directory (C:Microchip SolutionsTCPIP MDD Demo App) // Replace 6 files in total: // Maindemo.c/.h, HardwareProfile.h, TCPIPConfig.h, TCPIP MDD SD Card Demo App-C30.mcw/.mcp 2) add a delay using 9 Nop()s in the WriteReg() function after the statement Dummy = ENC_SSPBUF; 3) omit the second occurrence of {TCP_PURPOSE_HTTP_SERVER, TCP_ETH_RAM, 200, 200}
In MPLAB Project/build options/project -> Include Search Path add this folder: C:Microchip Solutions v2010-10-19MicrochipInclude I can't compile the project. The error message :
Quote
CustomHTTPApp.c: In function 'HTTPExecutePost': CustomHTTPApp.c:321: warning: unused variable 'cwdPathPtr' CustomHTTPApp.c:320: warning: unused variable 'cwdPath' CustomHTTPApp.c:689:29: error: macro "SaveAppConfig" passed 1 arguments, but takes just 0 CustomHTTPApp.c: In function 'HTTPPostConfig': CustomHTTPApp.c:689: error: 'SaveAppConfig' undeclared (first use in this function) CustomHTTPApp.c:689: error: (Each undeclared identifier is reported only once CustomHTTPApp.c:689: error: for each function it appears in.)
I have tried to download earlier version of the compiler, but I could not install, because the program wanted a serial number. I haven't found the lite version of the earlier compiler. Sorry my bad english, I don't speak english well. Please help me to solve this compiling problem. Thank you!