Dangerous Prototypes

Other projects => Past projects => Web platform => Topic started by: bretth on August 02, 2011, 11:55:45 pm

Title: First compile and doesnt run!
Post by: bretth on August 02, 2011, 11:55:45 pm
Hi

I have built the TCPIP Demo app for the webserver board, the board seems to boot, it gives out its IP address via UDP port 30303, but i dont get anything from my web browser. I have tried telneting in using port 80, and nothing also.

The ticker LED (LD1) flashes every second, plus the ACT LED seem to flash all the time, regardless of whether im trying to pull anything through the Ethernet port from the webserver.

However, to build i have had to comment out #define STACK_USE_HTTP_APP_RECONFIG in TCPIPConfig.h   

If i leave #define STACK_USE_HTTP_APP_RECONFIG in, then i get the following compile error

Code: [Select]
Executing: "C:Program FilesMicrochipmplabc30binpic30-gcc.exe" -mcpu=33FJ128GP204 -x c -c   "CustomHTTPApp.c" -o"Objects - TCPIP Demo App-C30CustomHTTPApp.o" -I"." -I"..MicrochipInclude" -I"%PROGRAMFILES%MicrochipMPLAB C30include" -D__DEBUG -g -Wall -mlarge-code
CustomHTTPApp.c: In function 'HTTPPostConfig':
CustomHTTPApp.c:485: error: 'NVM_VALIDATION_STRUCT' undeclared (first use in this function)
CustomHTTPApp.c:485: error: (Each undeclared identifier is reported only once
CustomHTTPApp.c:485: error: for each function it appears in.)
CustomHTTPApp.c:587:29: error: macro "SaveAppConfig" passed 1 arguments, but takes just 0
CustomHTTPApp.c:587: error: 'SaveAppConfig' undeclared (first use in this function)
Halting build on first failure as requested.
----------------------------------------------------------------------
Debug build of project `C:Microchip Solutions v2010-10-19MCstackDemoTCPIP Demo App-C30.mcp' failed.
Language tool versions: pic30-as.exe v3.30, pic30-gcc.exe v3.30, pic30-ld.exe v3.30, pic30-ar.exe v3.30
Preprocessor symbol `__DEBUG' is defined.
Wed Aug 03 20:52:00 2011
----------------------------------------------------------------------
BUILD FAILED

Could commenting this out be preventing the webserver from functioning correctly?, and, what am i doing wrong to need to comment this out?

Thanks
Brett
Title: Re: First compile and doesnt run!
Post by: dpropicweb on August 03, 2011, 12:23:12 pm
What was the problem?
Title: Re: First compile and doesnt run!
Post by: bretth on August 03, 2011, 10:35:40 pm
I have dug a litle deaper, and stumbled across this tread

viewtopic.php?f=24&t=2214&start=15#p21364 (http://dangerousprototypes.com/forum/viewtopic.php?f=24&t=2214&start=15#p21364)

If i comment out #define STACK_USE_HTTP_APP_RECONFIG in TCPIPConfig.h
and change

#define MY_DEFAULT_IP_ADDR_BYTE1        192
#define MY_DEFAULT_IP_ADDR_BYTE2        168
#define MY_DEFAULT_IP_ADDR_BYTE3        0
#define MY_DEFAULT_IP_ADDR_BYTE4        100

to match my network then everything is fine, but why isnt my DHCP settings working without making these changes, this seems to be as far as the thread i found above got to too!

Thanks
Title: Re: First compile and doesnt run!
Post by: ian on August 05, 2011, 01:15:21 pm
Hum, it's shouldn't matter. Maybe it is a problem in this revision of the stack?
Title: Re: First compile and doesnt run!
Post by: dpropicweb on August 05, 2011, 02:07:47 pm
What are you using for the dhcp server... an xDSL modem/router? Brand? Model? Someone else once had a similar problem which was fixed by changing routers.

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01052066584session_write_close ( )...(null):0
20.01092198176ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01092198952Database_MySQL->query( ).../DatabaseHandler.php:119
40.05502337688Database_MySQL->error( ).../Db-mysql.class.php:273