I am working on my senior design project and using an Arduino Mega. I have this weird problem where the program halted at random time, and the L LED on the board blinked every 0.5 second. Does anyone know what would be causing the issue?
I suspect that the Arduino run out of memory, but I am not sure. I read this Out-of-memory check post, and the author suggested a diagnostic L LED pattern when out-of-memory was detected. Was this somehow implemented as a default feature in Arduino?
Appreciate any opinion.
In the absence of any details, no.
Me neither.
Also, this is extremely unlikely to be an installation or troubleshooting issue - please recategorise it.
How do you halt an Arduino program? The only way I know is to remove the power or hold the reset button down.
In ether respect that stops the processor so nothing will blink.
So supply the code and a schematic of what you are making.
Installation and Troubleshooting is for Problems with the Arduino itself NOT your project. It says so in the description of the section. Therefore I have moved your post here. Please be more careful where you post in future.
You may want to read this before you proceed:-
how to get the best out of this forum
The Arduino does not "halt". If the LED is blinking then the program is running. It may not be doing what you think it should but since you didn't post your sketch, this is about as complete an answer you will get.
Try uploading the "MINIMAL" sketch. This should stop the LED "L" from blinking, if the "BLINK" code is running.
It actually halts, cause a joystick does not work.
I think it is actually because of memory. I commented out parts of codes, and it worked normally.
So we will never know!
Perhaps you need to actually read the instructions?
If the LED blinks, the processor does not halt.
Please mark the topic "solved"
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.