You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My bootloader doesn't need an IO pin to enter bootloader mode. It automatically enters bootloader mode after the MCU resets itself and return to application after 500ms to 4s (the compiled hex has a 1 second delay), so the first upload is free, since there is no code in the application section. The second upload, you need to press the reset button. AVR109 doesn't issue an DTR or RTS signal on serial, so auto upload is not possible with avr109.
We should consider adding DTR/RTS toggling to the avr109 programming option as we do with urclock, arduino, and wiring, as this would make it easier to enter bootloader mode using a simple auto-reset circuit.
The text was updated successfully, but these errors were encountered:
However, I've not been able to find a bootloader that with auto reset, and doesn't work without it.
I've tried Xboot, and if I set USE_ENTER_UART = yes in the arduino328p.conf.mk file, it jumps straight into the bootloader even though no auto reset. And if I use no, I'm not able to enter bootloader mode, not even with auto reset present.
Does the usleep(250 * 1000) really need to be that long? 50 ms is plenty to discharge the reset cap (should work even for C = 10 µF and R = 5k). -c arduino needs that long sleep b/c the optiboot bootloader needs a 200 ms pause between two successive calls. -c xbee might need a long pause perhaps b/c it involves sending packets over the air, but the standard AVR109 board?
Would it not be better to keep default behaviour at not plucking the reset line? I just imagine someone's board might blow up if DTR is suddenly toggled
First pointed out here:
We should consider adding DTR/RTS toggling to the
avr109
programming option as we do withurclock
,arduino
, andwiring
, as this would make it easier to enter bootloader mode using a simple auto-reset circuit.The text was updated successfully, but these errors were encountered: