AVR Dragon hold processor in RESET state

Hello,
I have a problem with the programming of an ATMega1284 on a custom board. I wrote a simple code blink_led. After downloading it with the JTAG interface of the AVRDragon and running without debugging (“run without debugging”) nothing happen. run the program even without debugging. The JTAG RESET pin remains at low level (0.4V) . If I remove the JTAG connector then the program in the flash starts running and the LED blink as programmed.

My platformIO.ini file:

[env:bare_dragon]
platform = atmelavr
board = ATmega1284
;framework = arduino
upload_protocol = dragon_jtag
board_build.f_cpu = 16000000L
upload_port = usb
board_upload.require_upload_port = false
upload_flags =
    -e
    -C
    $PROJECT_PACKAGES_DIR/tool-avrdude/avrdude.conf
    -v
    -c
    dragon_jtag
    -p 
    m1284
    -P 
    usb
upload_command = avrdude $UPLOAD_FLAGS -U flash:w:$SOURCE:i

How do I tell the programmer to put RESET high?

Thanks for your help

I found the solution,
Simply do not connect the nSRST signal to the RESET of the processor. The download don’t need to keep the processor in RESET state and then the processor starts executing automatically the program

1 Like