Arduino uno r3 does not press reset when the reset button is pressed

I start with Arduino Uno and can run some sketches through the Arduino IDE.

Something bothers me ... When I press the reset button on the board, I had the impression that my current application was deleted. This is not relevant. It still runs the last minimized application. Is this supposed to happen?

Also, when I run the β€œminimal” sketch without code instructions, the LED on board 13 is constantly on. Is this the default behavior?

+6
source share
3 answers

All that reset does is restart the application that you wrote in the arduino IDE.

+7
source

In fact, when you press the reset button, the controller resets and starts execution at the specified address (vector reset). In the case of Arduino, the address is at the top end of the flash memory containing the bootloader. If the loader does not see any traffic on the serial line (i.e., the incoming new program), it passes the execution to your program, i.e. setup(), loop() and it works. The program you load into Arduino is programmed in flash memory, it does not disappear so easily.

+4
source

This button should be marked as REBOOT. This is what he does with the board.

I added this similar answer because I understand that it is conceptually different from restarting the sketch than reset, and it starts everything

+2
source

Source: https://habr.com/ru/post/904702/


All Articles