Help needed with debug strategy


i working on multi-function clock project 6 rainbowduino modules, rtc module , ethernet shield.  the ethernet client used ntp protocol correct rtc module , time, date , on scroll across led panels.

i have developed these pieces separately on last couple of months , each piece works great alone.  when put them (ethernet , i2c) start runtime problems.  i2c used talk ds1307 rtc , led panels.  when added in ethernet functions started getting errors in i2c processing.  after looking @ i2c code long time started @ narrowing down ethernet code.  

in summary code below can see basic flow (the callntp function in sketch).  if comment out call "callntp" works.  if leave in, failures (bad data on i2c reads).  it's matter of having code there since failure occurs before called.  the declaration @ global scope can there without ill effect.

[font=courier]client client(server, 37);

loop()
{
 getthetime();  // query rtc
 showthetime(); // display time on led panels
 callntp();     // call out ntp server
}

callntp()
{
 client.connect();
 client.stop();
 
 return;
}  [/font]

the sketch 700 lines far , without call "callntp" it's 10190 of 14336 bytes.  with call in increases 12604 bytes since needs ethernet library.  i using arduino 0017.

are there interactions between ethernet , wire may have missed?  i thought worked fine when overall sketch smaller.  are there size issues or memory layout issues should looking at... , if how?

any suggestions great.  thanks!

ken

first thing springs mind "how ram using?"


Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Help needed with debug strategy


arduino

Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums