

#Visual studio code debugger step one plus
I have a warning plus a ‘non-imlemented stop reason’ (not sure why), but it works and I’m debugging 🙂 Debugging ARM Cortex-M4F with Visual Studio Codeīy default there are several debug views available. Not implemented stop reason (assuming exception): undefined

Reading symbols from C:\Users\erich\Data\GitRepos\McuOnEclipse\Examples\VisualStudioCode\FRDM-K22F\FRDM-K22F_Simple\build\FRDM-K22F_Simple.elf. UndefinedC:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major\bin\arm-none-eabi-gdb.exe: warning: Couldn't determine a path for the index cache directory. Launching GDB: "C:\Program Files (x86)\GNU Arm Embedded Toolchain\10 2020-q4-major\bin\arm-none-eabi-gdb.exe" "-q" "-interpreter=mi2" I case of troubles, check the Debug Console: Please check OUTPUT tab (Adapter Output) for output from C:/Program Files (x86)/SEGGER/JLink/JLinkGDBServerCL.exe Use F5 or the menu Run > Start Debugging to start a debug session: CMSIS-SVD File in NXP MCUXpresso SDKįor the launch file the extension does not matter, but I recommend to rename it to. If using the NXP devices, then the SVD files are present in the NXP MCUXpresso SDK, but are harder to find as NXP is not using the standard *.svd extension. They are used for example in the Eclipse EmbSysRegView view and this is a good source to get the files. The “svdFile” entry in the launch.json file is optional, but crucial to embedded system debugging because it describes the device peripheral registers.

Debugging is through a debug probe (J-Link), either external (standalone debug probe) or on-board (available with many development boards e.g. For this I need the tools and extensions installed in Part 1 of this tutorial series.
#Visual studio code debugger step one how to
In this article I show how to debug an ARM Cortex (M4F, NXP K22FN512) microcontroller with the Microsoft Visual Studio Code. This one is about debugging an ARM Cortex-M Microcontroller with Visual Studio Code: Cortex-M4 (NXP K22FN512) Debugging with Visual Studio Code Outline

The previous parts were about installation, project setup and building.
