I am looking for The IDe for Arduino Uno board . with breakpoint option. I have some Piece of code running on Arduino platform. Individually those algorithms are working fine without any RESET. When i Put all cases together SOmehow getting Reseted. I would like to know is there any IDE .which COmes up with Breakpoint So to determine The postion Where it being getting struck
I have some Piece of code running on Arduino platform.
So, where do you want to set this breakpoint? Breakpoints are set in the debugger running on the same machine as the code. That is NOT possible in the case of the Arduino.
I would like to know is there any IDE .which COmes up with Breakpoint So to determine The postion Where it being getting struck
I would like to know is there any IDE .which COmes up with Breakpoint So to determine The postion Where it being getting struck
The easiest things that you can do is to print messages at various points in your code. The messages can contain the value of variables.
If you really want, to you could write a function that when called prints out the position it was called from and the value of variables and waits for a button press before returning and continuing the program, but you could end up writing more code than is in the program itself.
Anugraha:
When i Put all cases together SOmehow getting Reseted.
That makes me suspect you're running out of SRAM. Try simplifying your sketch until it runs reliably, add some code to print out the free memory (see Arduino playground for examples) and then gradually add code back in until the problem occurs.
Thanks for support . I solved the issue. I used Serial.println statement on each of function call, where i come to know that where exactly problem is.
I have find weird problem that Whenever i use Serial.print inside the function my controller being reseted when i commented out ,it started working normally. Is arduino Uno board does these thing . or some other issue it pointing too.
I have find weird problem that Whenever i use Serial.print inside the function my controller being reseted when i commented out ,it started working normally. Is arduino Uno board does these thing . or some other issue it pointing too.
You are running out of memory with all the Serial.print()s in place. Commenting them out reduces memory requirements, to the point where you then have enough to allow the program to execute properly.