Skip to main content

Messages

This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.

Messages - cstrutton

1
Web platform / Re: Microchip TCP/IP 5.31 and RTCC coexisting?
Now that I re-read a bunch of stuff you may be right. 

I read this: (from DS70292D-page 187)

Code: [Select]
The unique features of Timer1 allow it to be used for
Real-Time Clock (RTC) applications. A block diagram
of Timer1 is shown in Figure 12-1.
and assumed the RTCC module used timer1.  I will look closer once I get some more sleep.

Chris
2
Web platform / Microchip TCP/IP 5.31 and RTCC coexisting?
I have had my web platform for about a week now and am climbing the pic learning curve.  I want to use the platform for an industrial process monitoring solution.  I want to use the Microchip stack due to the SNMP stuff.  I want to use the RTCC to provide date stamps for the events it will forward to an http server (connected to a database).

I believe I am correct in assuming that the RTCC uses timer1 and will conflict with tick.c in the microchip stack.  I am fairly certain it can be moved to another timer.  Has anyone converted tick.c to run on another timer?  If no one has I will be working on this week.  If anyone can offer any help I would appreciate it.

Thanks in advance
Chris
3
Web platform / Re: SDcardserver with TCPIP Stack 5.31
Hi Medamarko

I had the same problems and found a solution.  The 5.31 firmware defines SaveAppConfig as

Code: [Select]
#if defined(EEPROM_CS_TRIS) || defined(SPIFLASH_CS_TRIS)
void SaveAppConfig(const APP_CONFIG *AppConfig);
#else
#define SaveAppConfig(a)
#endif

so it expects one parameter

the web platform demo defines it in MainDemo.h as

Code: [Select]
//we made custom files so we can distribute them
//we don't all have same functions as the orig. This file was required
//so MPFS would compile without a custom SaveAppConfig function.
#define SaveAppConfig() NOP()

changing the define to :
Code: [Select]
#define SaveAppConfig(a) Nop() 

worked for me.  Note the change in the NOP() to Nop()

Chris

( ! ) 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.01342289960session_write_close ( )...(null):0
20.01372421560ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01372422336Database_MySQL->query( ).../DatabaseHandler.php:119
40.05672561072Database_MySQL->error( ).../Db-mysql.class.php:273