Skip to content

atmega16u2 unexpectedly starts running bootloader #134

@hraftery

Description

@hraftery

I've deployed HoodLoader2 on a PCB design based on the Arduino UNO. I'm running a small sketch on the 16u2 based on HID-Bridge, and a larger project on the 328p. The device delivers HID reports to an Android device over USB.

I'm now experiencing very odd occurrences of the 16u2 ending up in the bootloader, despite being constantly powered and nothing influencing the RESET pin. Without my sketch running, the device is not effective and needs to be power cycled to return to normal.

What are the ways a 16u2 running a sketch can end up back in the bootloader? Anything other than the 1200 baud trick?

Are there options for ensuring the device doesn't stay this way? Say, a timeout in the bootloader, so if it ever does find itself running, will default back to the application after a dormant period?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions