Replies: 3 comments 6 replies
-
On Sat, Dec 30, 2023 at 09:53:13AM -0800, Johan Van Zijl wrote:
So I suggest we use the same approach the Arduino IDE uses: Open the
port with BAUD 1200, which forces the device into programming mode,
and then wait for n seconds and run the avrdude command.
In my testing, this works for most AVRs, but I would appreciate your
thoughts before contributing my changes for this enhancement.
Please describe the "trick" in more detail.
I'm asking because I don't understand that only waiting with
baudrate at 1200b/s on development host triggers programming mode.
(I mis something like sending a character sequence (at 1200bd)).
Groeten
Geert Stappers
--
Silence is hard to parse
|
Beta Was this translation helpful? Give feedback.
0 replies
-
So basically if you look at the code used in the Arduino IDE for
programming the first thing it does is open the COM port with a 1200 baud
this seems to basically reset the the device but basically only a soft
reset, I am digging through the boot loader to understand it better right
now but it works.
Check out the code snippet here:
https://github.com/arduino/Arduino/blob/master/arduino-core/src/cc/arduino/packages/uploaders/SerialUploader.java
see line 130-136
Hope it helps.
|
Beta Was this translation helpful? Give feedback.
4 replies
-
Understood for me, this was mainly around the Arduino, I have found the
others to work just fine.
That is why I wondered if we could support this as a feature.
I did figure out it was hardware in the end, but thnx for the clarification,
I might help others as well.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After falling over this a couple of times, I believe it might be a good idea to make things a little simpler for flashing to AVR when it requires a hard reset, but there is no explicit reset button, only a hard reboot.
The Adafruit ItsyBitsy 32u4-5V 16MHz board has a reset, but it uses the double-tap interface to reset to programming mode.
This meant I had to flash my binaries to the device manually jiggle the double press on the USB connection on both Linux and Windows and frankly, it's bloody annoying.
So I suggest we use the same approach the Arduino IDE uses: Open the port with BAUD 1200, which forces the device into programming mode, and then wait for n seconds and run the avrdude command.
In my testing, this works for most AVRs, but I would appreciate your thoughts before contributing my changes for this enhancement.
Beta Was this translation helpful? Give feedback.
All reactions