Jump to content

Arduino: Difference between revisions

From Smithnet Wiki
Line 1: Line 1:
== General ==
== General ==


The [https://github.com/Optiboot/optiboot Optiboot] or other bootloader runs after a reset and looks for a new program to download via RS232. If none is present, the existing one is run. See [https://rheingoldheavy.com/arduino-from-scratch-part-11-atmega328p-dtr-and-reset/ here] for description of the use of DTR.
On reset or powerup, ehe [https://github.com/Optiboot/optiboot Optiboot] or other bootloader code is run. If an external reset was the cause, listening mode is entered, and the LED is flashed. Programming commands in STK500 protocol are listened for, of the serial line at 115200 speed. If none are received in a small timeout window (~ 1s), the normal code is executed.
 
The DTR line if used to trigger a reset in software IDE (see [https://rheingoldheavy.com/arduino-from-scratch-part-11-atmega328p-dtr-and-reset/ here].


* [https://docs.arduino.cc/retired/boards/arduino-duemilanove/ Duemilanove]
* [https://docs.arduino.cc/retired/boards/arduino-duemilanove/ Duemilanove]

Revision as of 20:01, 16 August 2025

General

On reset or powerup, ehe Optiboot or other bootloader code is run. If an external reset was the cause, listening mode is entered, and the LED is flashed. Programming commands in STK500 protocol are listened for, of the serial line at 115200 speed. If none are received in a small timeout window (~ 1s), the normal code is executed.

The DTR line if used to trigger a reset in software IDE (see here.

Documentation

Useful Libraries

Other

Development Environment

  • SHIFT-ALT-F to format document

Platformio.ini

  • monitor_speed = 115200