Arduino rebooting with Serial.println


i running program.
code: [select]

... code here...
while (1)
   {
   delay(5000);
   serial.println("while start");
   delay(5000);
   serial.println("yes");
   delay(5000);
... code here using digitalread(g) etc


what happening loop code runs fine couple of times , reboots arduino. if comment out serial.println -lines goes fine. tried serial.flush() causes immediate. corrupted output above lines. serial.println works fine otherwise in other programs. believe timing issue delay above should take care of that.
i there way debug code other using serial.println?

i believe timing issue delay above should take care of that.
i believe have memory issue in code did not show. serial.println() symptom of disease ;)

for cure disease, please provide full code.


Arduino Forum > Using Arduino > Programming Questions > Arduino rebooting with Serial.println


arduino

Comments

Popular posts from this blog

Flip address is out of range arduino uno r3

Arduino Uno not uploading

Indesign and MathType fonts