I am starting off with an Arduino Uno and am able to flash some sketches via the Arduino IDE.
Something confuses me though... When I press the reset button on the board I was under the impression that my currently flashed application is removed. That is not the case. It still executes the last flashed application. Is that supposed to happen?
Also when I flash the "bare minimum" sketch with no code instructions, the on board LED on pin 13 is constantly active. Is that the default behavior?
Lucky for us, resetting an Arduino is way easier. All you have to do is press the momentary push button mounted to the top of the board, and your Arduino will reset.
If we take Arduino Uno as a device and press the reset button then the Arduino board will start again. Similarly, the Arduino code saved in the memory of the microcontroller the respective code will also run from the start. The reset button is mostly used when we have to restart the Arduino code from the beginning.
All that the reset does is restart your application you wrote in the arduino code IDE.
Actually, when you press the reset button, the controller is reset and starts execution at a specified address (the reset vector). In the case of Arduino, the address is in the upper end of the flash memory which contains the boot loader. If the boot loader does not see any traffic in the serial line (i.e. an incoming new program) it transfers execution to your program, i.e. setup(), loop()
and the works. The program you load to Arduino is programmed in a flash memory, it does not go away that easily.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With