
Line in the gray area or press Shift+Ctrl+B).
OPENOCD SETUP FOR MAC CODE
Press F8 or Run > Resume to let it continue and placeĪ breakpoints anywhere in the code (double clicking just in front of the If you don't see any errors, Eclipse should go to an dedicatedĭebugging environment automatically and it automatically halts theĬrazyflie's firmware before it goes into the main function of Commands: set mem inaccessible-by-default off.Executable name: Filepath to gdb toolchain.f interface/stlink-v2.cfg -f target/stm32f4x.cfg -c init -c targets DebuggerĬheck the following settings: OpenOCD setup -> Config options: Insert the filepath to the cf2.elf file to C/C++ Application.

Now input the following settings in the debug configurations: Main
OPENOCD SETUP FOR MAC INSTALL
Install the C++ development tools and GNU MCU plugin by following the Is properly installed and its path is configured in the debugĬonfigurations. Run Eclipse and choose work folder Installing required Eclipse plugins


Make sure it has the exact name of “STM32F405.svd”! Debug!Īfter setup, go to the ‘Run and Debug’ tab of VS Code (on the left sidebar, the icon with the little bug next to the play button), select the chip you want to debug from the drop-down menu at the top of the pane, and hit the play button! Now for the SVD file: just download it from here and into the firmware root dir. You can add your app debugger as a separate configuration. "executable": "$/examples/app_hello_world/build/cf2.elf”, or to which app you would like to debug. Hover to view descriptions of existing attributes. Use IntelliSense to learn about possible attributes.
