Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 64959

Forum Post: RE: MSP432 Stepping with GDB in C++ code build with gcc

$
0
0
Hi Bob, I have managed to resolve the stepping issue while debugging another problem. Apparently the issue was adding -specs='nosys.specs' to the linker flags, as this pulls in a lot of stuff from newlib (e.g. _malloc, _free) for (unnecessary) destructors of global data structures. I replaced it with -specs='nano.specs' and now stepping works fine, as do hardware breakpoints. I hope this does not break other things, as I would prefer not pulling anything from the C standard library that is intended for operating systems (like kill, exit, write, etc.) Is there maybe a full guide how to use C++ with the open source toolchain on the MSP432? And do you know what exactly caused this strange stepping problem? Cheers, Dan

Viewing all articles
Browse latest Browse all 64959


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>