Re: Fixes for Microchip MDD Demo TCPIP Stack 5.31
Reply #1 –
Thanks Jeff,
I added a link to the demo on the wiki. Another member, serenavv, is also working on a step-by-step guide to getting it going on TCPIP stack v5.31. When we work out the kinks I'll package up a new demo that should work "out of the box" with v5.31.
Used:
MPLAB ide v8.63
C30 v3.23 (with C30 v3.25 it doesn't work!!!)
Microchip Applications Libraries (with TCP/IP Stack 5.31)
SDFormatter v2.0
MCHPDetect
1) Replace original files of microchip stack 5.31: Maindemo.c, maindemo.h, HardwareProfile.h, TCPIPConfig.h, TCPIP MDD SD Card Demo App-C30.mcw/.mcp as reported on readme.txt into the Microchip MDD HTTP demo directory (C:Microchip SolutionsTCPIP MDD Demo App by default)
2) Open workspace TCPIP MDD SD Card Demo App-C30.mcw with MPLAB
3) Change on file "ENC28J60.c" ENC_SPICON1bits.CKE = 1; to ENC_SPICON1bits.CKE = 0; (on line 223 and 229)
4) Change in file "MainDemo.h" #define SaveAppConfig() NOP to #define SaveAppConfig(a) Nop()
5) Remove one of the two "{TCP_PURPOSE_HTTP_SERVER, TCP_ETH_RAM, 200, 200},"
5) Compiling it now, it returns "BUILD SUCCEEDED"
6) Upgrade Webplatform firmware with "TCPIP MDD SD Card Demo App-C30.hex" using ds30 Loader
7) Format MicroSD using SDFormatter
8) Put all files of folder WebPages2 into MicroSD (C:Microchip SolutionsTCPIP MDD Demo AppWebPages2)
9) Run MPFS2.EXE (you find it in C:Microchip SolutionsMicrochipTCPIP StackUtilities).
9.1) Set your webpages folder (default folder is C:Microchip SolutionsTCPIP MDD Demo AppWebPages2)
9.2) Set MDD in Processing Options and choose your output folder
9.3) Click on generate
9.4) Copy to MicroSd also the files 'DynRcrd.bin' and 'FileRcrd.bin' that you find in your output folder
10) Put MicroSD in WebPlatform and connect lan cable
11) Use MCHPDetect (you find it in C:Microchip SolutionsMicrochipTCPIP StackUtilities) to know IP address of the board
12) Power on the webplatform (or press reset key)
This evening I try theese istructions (during writing) but there are some problems:
is not possible to send email or use authentication or upload files :(
I try also to add to TCPIPConfig.h following lines but it doesn't work!:
#define STACK_USE_SMTP_CLIENT
#define STACK_USE_HTTP_EMAIL_DEMO
#define STACK_USE_DYNAMICDNS_CLIENT
#define HTTP_USE_AUTHENTICATION
#define STACK_USE_HTTP_MD5_DEMO