layout | title | parent | grand_parent | nav_order |
---|---|---|---|---|
post |
MacOS |
1.2 Basic Workspace Setup |
Lesson 1: Zephyr Setup |
11 |
-
Add the following extensions to VSCode:
- C/C++
- Cortex-Debug
- DeviceTree
-
Optional: set terminal color to green
-
Clone tutorial folder into
~/zephyrproject
cd ~/zephyrproject
git clone https://github.com/maksimdrachov/zephyr-rtos-tutorial
-
Connect your Nucleo board to your computer
-
Set up serial connection with Nucleo
- Port: usbmodemxxxxx
- Baudrate: 115200
Terminal -> check "Filter ASCII Escape Sequences"
File -> Save
Save this configuration under ~/dev-tools/coolterm
, since you'll need it often. (suggested name: nucleo-f756zg)
-
Open the folder zephyr-rtos-tutorial in VScode
-
Open Coolterm with the
nucleo-f756zg
configuration and connect -
Terminal -> New Terminal
cd exercises/basic-sample
west build -b nucleo_f756zg
west flash
Tip: if you've previously made a build for a different board, remove the old build first:
rm -rf build
- Verify the serial output:
Your final setup should look something like this: