1
Web platform / Cannot compile source code for Webserver
I am having several issues with the source code for the webserver platform
1.
I am starting with the simplest steps, replacing the TCPIP MMD Demo App in the Microchip Application Libraries with files in the MCstack-SDcard-server.
The problem is that I don't know which version of application libraries to use.
I doubt it is the most recent one v2011-07-14, which I believe came out after MpLabX, but I have tried it as well without success. (it doesn't have the MMD demo app)
I have been trying to use the v2009-11-18 libraries, which seem to have been around the same time that the Web Server on a Business Card has been created.
When I replaced TCPIP MMD Demo App with files in the MCstack-SDcard-server,
I got this error trying to compile in MpLab 8
pic30-coff-cc1.exe: error: Invalid -mcpu option. CPU 33FJ128GP204 not recognized.
I changed from dsPIC33FJ128GP204 which uses the v3.10_C assembler to dsPIC33FJ128GP206 which uses the v2.02 assembler. (I don't know why they are different, maybe someone can help me understand that)
I got 500 or so errors, which I posted in the attached document.
This seems to be most likely related to the version incompatibility, maybe I downloaded a TCP-IP stack that is too old.
If that is the issue, can you please let me know what version/date I should be using.
I also need to know if that issue with the dsPIC33FJ128GP204 can be resolved by downloading a more recent verison of C30, and whether or not the software will run on the Webserver if it compiled under dsPIC33FJ128GP206 ?
By the way, I tried compiling the original TCPIP MMD Demo App, however I received errors from the linker that the program memory was full
...pic30-coff-ld.exe: Link Error: region program is full (TCPIP MDD SD Card Demo App-C30.cof section .const)
data_init: Link Error: Could not allocate section .dinit, size = 422 PC units, attributes = code
default_isr: Link Error: Could not allocate section .isr, size = 2 PC units, attributes = code
Would this be because I am using the dsPIC33FJ128GP206 as my device? I am using the large code model which was selected by default when I opened the project. Everything else i set to default.
2.
This is a question about the Web Server on a Business Card project which I originally started to attempt to compile.
The problem I ran into was with the FATHTTP.patch process.
First, I was not sure what version of the application library/tcpip stack to use, and thus I downloaded the 2009-11-18 version which seems to have been released a few months after the project, but it is the earliest version available.
I tried patching the http.c file with Linux and Tortoise svn but the .patch file seems to be of a wrong format, because it doesn't include "Index: " line and other things.
What is the proper program I should be using to apply this patch? Does anyone have a fathttp.c file they can send me? (dmitryponv (at) gmail (dot) com) or perhaps a patch that I can use with Tortoise SVN?
3.
This is a question regarding the FreeRTOS distribution (matt/eric) that came with the Webserver package.
Is this the source that is running on the Webserver, including the bootloader, and etc?
I have been unable to compile it as well
Does this distribution require the TCPIP stack from Microchip?
If so how would I go about combining the two so that I can compile the firmware of the Webserver board?
If not, then where is the firmware? there are many different projects in the firmware folder of the source.
Are these still based on the MicroChip TCPIP stack or do they use a different source for the stack?
Thank you for taking your time to read my questions.
If some of these have been answered before please let me know where to look for them.
I would really like to purchase the Webserver board or to build the web server on a business card for my research. But unfortunately, I cannot do anything until I can compile the source code.