Optiboot / optiboot

Small and Fast Bootloader for Arduino and other Atmel AVR chips
Other
1.08k stars 396 forks source link

upload new file with RS485 #320

Closed prechberger closed 2 years ago

prechberger commented 2 years ago

I will upload a new Code via RS485. First i compile the optiboot for my atmega328(Arduino Uno) with the following command.

make BAUD_RATE=38400 RS485=D4 clean atmega328

Then i upload this .hex file via the Arduino ISP. Now i will update my firmware on the Arduino via the RS485. So i have written a small Blink Programm and want update it. But i have no idea how should i transmit the file across the bus. The D4 Pin is connected to the ground.

If i compile the bootloader without the RS485, the update process works fine with following command

make atmega328

Can someone help my?

WestfW commented 2 years ago

the Optiboot rs485 support is at a pretty low level; just "enable transmitter when transmitting, disable it when receiving." I actually have no idea what people are using WRT higher-level hardware and tools. Or "typical application", even.

WestfW commented 2 years ago

Duplicate of https://github.com/Optiboot/optiboot/issues/305 Might be addressed by current code, depending on the exact requirements.