PlatformIO Community

Can't disable initial break

I’m trying to debug an Arduino framework sketch on a SAMD21E18. If I set debug_init_break = in platformio.ini, the debugger still tbreaks on the first line of reset_handler(). If I set debug_init_break = tbreak loop, that is at least a little more useful/simple in arduino land, but I can’t seem to simply disable the initial breakpoint entirely as I’d like.

This is a default entry point where MCU stops. Where would you like to stop?

In a perfect world, I’d simply disable the initial break.

I’d rather break where I place breakpoints, or not at all.

1 Like

Hi Ivan,

I am using Atmel-ICE to debug with target arduino due. It does not seem to stop where I wanted it to. For a normal debugger one can set break point for example at “x++;” When I set my debugger to that line and then run. The program does not stop. But if I were to stop the using the pause button on the debugger control panel. I was able to pause the program, also it returns the value of x at the watch window. Debugger seem to stop at a function extern caddr_t _sbrk ( int incr ) in file syscalls_sam3.c.

Do you have some idea for proper setup of debugger? Thanks.

Philip

What is your platformio.ini?