This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Setting up a workspace in Visual Studio Code

Hi, I am looking to develop applications for the nRF5340.  After watching the "Introduction to Zephyr RTOS" webinar, I saw that the software engineer presenting the demo was using Visual Studio Code and West to build and debug Zephyr sample projects.  I was wondering if there is a guide on how to set up a workspace in VS Code for developing applications, debugging, and flashing?

I have gone through the "getting started guide" for Zephyr, but there is no mention of setting up VS Code.  I would appreciate it if someone could point me to a guide or explain the process.

Parents Reply Children
  • Thank you for your guidance.  I am able to build and flash but for some reason, I keep getting an error when trying to debug with JLink.  I have added the file path to the system PATH but still, I have had no success.

    I keep getting the following error:

    C:\Users\Petrus\zephyrproject\zephyr\samples\hello_world>west debug --runner jlink
    -- west debug: rebuilding
    [0/1] cmd.exe /C "cd /D C:\Users\Petrus\zephyrproject\zephyr\samples\hello_world\build\zephyr\cmake\flash && "C:\Program Files\CMake\bin\cmake.exe" -E echo "

    -- west debug: using runner jlink
    FATAL ERROR: required program JLinkGDBServer not found; install it or add its location to PATH

Related