Hi, all,
tried search this->location and google, but didn't find any answers.
Have a Maple rev5 here, connected to:
ATmega328 - Serial1, (works good)
Sparkfun serial LCD v2.5 pin26 - bitbanging (works good)
PC via SerialUSB, PC: Windows XP SP2.
No problems 300+ times flashing the chip so far in developement phase ;-).
The maple by the time now does nothing else than:
Setup: initialize the devices (see above) and set some variables
Loop:
See wether a char is in serialUSB entrance,
if '1': poll new data from the ATmega328, send them to PC (char[40], not more)
if '3': put out a char[20] constant to SerialUSB
if 'h': put out some char[20] to the LCD
if millis > 2000 than last time measurement, toggle LedPin, move LCD cursor one to the right.
(Latter to see if loop is still alive.)
This all works perfectly as long as I stay somehow busy and communicate from time to time with the board, putting the above keys into the serial monitor, but if I have to leave for a longer telephone call, coming back to the PC, it refuses to anything of the above entries.
The loop is still alive (blinkin LED, moving LCD cursor each second one further), but the SerialUSB seems to be switched off.
None of the PC chars reaches the SerialUSB input.
Using Maple IDE Version 0.0.12
Any comments on that? Or where I could find explanations / workaround?
Should I wake up SerialUSB from the CortexM3 side regularly after certain period?
Should I keep sending each 30 min an 'still am here' char to the PC in oder the PC is not killing the connection by timout? Does the PC driver has a timeout?
Btw.. just noticed that the IDE behaves strange in this 'hungup' state:
loading and closing a new sketch then leaves the IDE splash screen on the desktop.
Had to restart the IDE (close all open sketches, restart) to get rid of the IDE splash screen.
Closing and reopening the serial window of the active sketch alone didn't cure.
regards, happy for any answer on this topic...