Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

This is an examplevscode setting to provide supports forzephyr based projects build/debug.

Quick start

  • 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.

Known issues

  • 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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp