If you debug a standalone C- or C++ application, by default you can’t step into the Board Support Package (BSP) code.
Here is how you enable debugging for the BSP sources:
- Turn optimizations off (-O0) and turn on the debug information (-g3). Right-click on the BSP project and click “Board Support Package Settings”. Then add “-g3 -O0” to extra_compiler_flags: