UDP receiving packets inside TImer Routine

More info....

  • IDE is v1.0
  • board is standard Duemilanova
  • code is NTP demo code which works fine outside of timer routine
  • Timer library is MSTimer2 from Aduino web site
  • Enternet board is off the shelf Wiznet with NO SD fitted

Update:

I left the code running overnight with the UDP code commented out and a 1second timer tick, lots of serial debugging, code is ticking over every second. To reduce SRAM usage comments are using the Serial.println(F("comment")); so I cant see a RAM issue. Timer code works with no perceived issues.

NTP code works fine outside of timer routine as per NTP example, but I'm trying to schedule stuff to do based on fixed time quantums so running full speed in a loop is not ideal for the task at hand, I might change the logic to use the timer solely as a counter and then simple state logic to send UDP requests and monitor receives outside of the timer ISR and inside loop().

Any thoughts on issues that might arise are welcome, I'll Keep you updated.