NicoHood / HoodLoader2

16u2 Bootloader to reprogram 16u2 + 328/2560 with Arduino IDE
http://www.nicohood.de
735 stars 186 forks source link

IO MCU resets on USB MCU reprogramming #17

Closed NicoHood closed 8 years ago

NicoHood commented 9 years ago

The Reset pin is floating for a few seconds on a USB MCU selfprogramming reset. This also causes the IO MCU to reset. I did not find any solution for this. Help appreciated.

NicoHood commented 9 years ago

After using a USB-Serial sketch on the 16u2 and reprogramming the IO MCU the 16u2 also resets to bootloader mode. For some reason the OS (Linux) sets the Serial baud to 1200 after reprogramming.

This is a different issue, caused by the IDE implementation itself/OS. This has nothing to do with HL2. I just want to mention it here as well.

NicoHood commented 8 years ago

It seems that the host always triggers the dtr lines on a reset, even on a baud != 57600 and 1200. (linux)

Also the initialization of the pin in the hardware setup causes the IO MCU to reset once. So we have 2 reset triggers: setup and DTR change on a baudrate we dont know.

This bug is mostly impossible to fix without host modifications. Keeping it open as notice and maybe someone can come up with a fix.

NicoHood commented 8 years ago

Closing as it seems impossible to fix. Its a hardware problem.