- Notifications
You must be signed in to change notification settings - Fork0
This is an example vscode setting to provide supports for zephyr based projects build/debug.
License
NotificationsYou must be signed in to change notification settings
codingspirit/vscode-zephyr
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is an examplevscode setting to provide supports forzephyr based projects build/debug.
- Copy this.vscode folder into your project root folder.
- Modify the environment variables at the end oftask.json andlaunch.json base on your own settings:
//task.json"options": {"env": {"ZEPHYR_TOOLCHAIN_VARIANT":"zephyr","ZEPHYR_SDK_INSTALL_DIR":"/home/alex/zephyr-sdk-0.10.3","ZEPHYR_BASE":"${workspaceFolder}/zephyrproject/zephyr","VS_CODE_BOARD_TO_BUILD":"reel_board","VS_CODE_ZEPHYR_BIN_NAME":"zephyr.elf", } }
//launch.json"miDebuggerPath":"/home/alex/zephyr-sdk-0.10.3/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb"}]}
- PressCtrl+Shit+B to trigger build task(You also can run task "zephyr build ninja" alternatively if you want to useninja to build).
- Press the holyF5 button(which is on the right side of theF4 button) to start debugging.
- An selecting list will jump out when terminated debug process, don't forget to select it.
An exception will occur when stop atmain(). Not sure where the root cause is, but debug process still can proceed, just ignore it.
Breakpoints can't be added into some lines but you can run code step by step to those lines. Disable zephyr build optimization doesn't help on this, it might related to zephyr toolchain.
About
This is an example vscode setting to provide supports for zephyr based projects build/debug.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published