Skip to content

Flash bootloader with JTAG ICE3 over JTAG immediately disables JTAG and fails #9285

Open
@Detzi88

Description

@Detzi88

Hello,
selecting "JTAGICE3 JTAG" in the arduino IDE and trying to burn the bootloader results in an error.
I tryed to discuss it on the forum before i came here but with little response:
https://forum.arduino.cc/index.php?topic=639257.0

Expected behaviour:
IDE flashes bootloader over the JTAG interface using JTAGICE3

Actual Behaviour:
IDE disables JTAG on the Target and fails flashing the bootloader

All the details are on the forum, to make it short, the first thing the ide does is set the fused to:

avrdude: writing lock (1 bytes): 0x3F
avrdude: writing efuse (1 bytes): 0xcb
avrdude: writing hfuse (1 bytes): 0xd8
avrdude: writing lfuse (1 bytes): 0xff

Which disables JTAG. Since this happens right at the start it obviously can't continue flashing the bootloader.

What i suggest is leaving the JTAG fuse active when starting the "burn bootloader" process and possibly not disabling it at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Architecture: AVRApplies only to the AVR microcontrollers (Uno, etc.)Component: CoreRelated to the code for the standard Arduino APIType: Bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions