1、ZDS 2023TOOLS FOR VSCODENRF9160 FEATHERI TOOK THE RED PILL ZEPHYR LIVE SESSIONSYOUTUBE.COM/C/CIRCUITDOJOTHE PROBLEM-Getting started with Zephyr can be painful-Zephyr is the new hotness-Multiple targets,same codebase-Learning curve due to new tools-mcumgr,west,ninja,cmakeTHE PROBLEM#ZDS2023THE SOLUTI
2、ON-So why not lessen the hurdle!-Focus on a coding environment that*many*people use:VSCode-Make it easier to go from 0 to compiling code with least amount of headache-Make it cross platform x 3.5*THE SOLUTION#ZDS2023-Building an open source VSCode extension was the result-Located on Github-https:/ i
3、n typescriptTHE SOLUTION#ZDS2023THE SOLUTION#ZDS2023INITIALIZINGINITIALIZING#ZDS2023-Setup downloads and installs:-Sets up Python3 environment-Zephyr toolchain(ARM)-CMake,Ninja,Newtmgr,and Zephyr Tools CLI(for monitoring serial devices)-Only need Git and Python3 installed beforehandINITIALIZING#ZDS2
4、023 version:12,win32:arch:x64,downloads:#ZDS2023INITIALIZINGmanifest.json-Every supported platform gets a manifest.json entry which provides links to downloads-Allows fine grained control over binaries for different architectures-Both x86_64 and Aarch64 for MacINITIALIZING#ZDS2023/Define what manife
5、st to uselet platformManifest:ManifestEntry|undefined;switch(platform)case darwin:platformManifest=manifest.darwin;break;case linux:platformManifest=manifest.linux;break;case win32:platformManifest=manifest.win32;break;#ZDS2023INITIALIZINGextension.ts-As you can imagine there are lots of possibiliti
6、es for this:-Different toolchains for different SDKs(qemu x86,etc)-Other utilities/dependencies needed Zephyr project wideINITIALIZING#ZDS2023STARTING FROM EXAMPLESTARTING FROM EXAMPLE#ZDS2023STARTING FROM EXAMPLE#ZDS2023-Init Repo command will:-Take a Git url and download into a location you specif