platformio / platform-atmelsam

Atmel SAM: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/atmelsam
Apache License 2.0
78 stars 105 forks source link

Cannot upload und debug Arduino Due with Stlink-V3set #185

Open FGSikasa opened 2 years ago

FGSikasa commented 2 years ago

I have this ini settings:

[env:due] platform = atmelsam board = due framework = arduino debug_tool = stlink upload_protocol = stlink

I get the following output: Warn : target at91sam3X8E.cpu examination failed embedded:startup.tcl:1070: Error: Unable to reset target in procedure ‘program’ in procedure ‘program_error’ called at file “embedded:startup.tcl”, line 1107 at file “embedded:startup.tcl”, line 1070 *** [upload] Error 1

I have tried the flags as follows but it did not help !

upload_flags = -c reset_config none upload_flags = -c reset_config trst_only upload_flags = -c reset_config srst_only upload_flags = -c reset_config trst_and_srst