Hi, This may be a very basic question, I’m not sure if I’m doing anything wrong, when I run the debugger with Atmel ICE, It seems like it starts and I actually see my application running but it doesn’t stop at the main at the beginning nor at my breakpoints. Then I changed the init to start at my setup(), but it doesn’t do that either.
debug_init_break=tbreak setup
I know the debugger is working because If I pause it, then I can take it from wherever is running. Also, if have added a few breakpoints and it doesn’t stop.
One more thing, I can’t program it through the Atmel ICE using the “upload” task, even though I changed the upload_protocol to atmel-ICE, I’ve been programming through the programing USB port. The programming part doesn’t worry me very much because I can’t still program my board, but the debugging part is the one that is concerning me.
Here is my console print and ini file.
Thanks!!
[env:due]
platform = atmelsam
lib_extra_dirs = ~/Documents/Arduino/libraries
board = due
framework = arduino
lib_extra_dirs=C:\Users\saez.gerardo\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12
debug_tool=atmel-ice
build_type=debug
debug_init_break=tbreak setup
debug_svd_path=C:/Users/saez.gerardo/AppData/Roaming/SPB_Data/.platformio/platforms/atmelsam/misc/svd/ATSAM3X8E.svd
*****************************************************************************************************************
xPSR: 0x01000000 pc: 0x00083a1c msp: 0x20088000
Loading section .text, size 0x8f48 lma 0x80000
Loading section .ARM.exidx, size 0x8 lma 0x88f48
Loading section .relocate, size 0xa70 lma 0x88f50
Start address 0x83a1c, load size 39360
Transfer rate: 31 KB/sec, 7872 bytes/write.
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x00083a1c msp: 0x20088000
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x00083a1c msp: 0x20088000
PlatformIO: Initialization completed
PlatformIO: Resume the execution to `debug_init_break = tbreak setup`
PlatformIO: More configuration options -> http://bit.ly/pio-debug
***************************************************************************************