-
Notifications
You must be signed in to change notification settings - Fork 2
Getting started guide for Windows environment
- Install dependencies as guidelines for Windows at https://docs.zephyrproject.org/latest/develop/getting_started/index.html#install-dependencies
-
Open a cmd.exe terminal window as a regular user
-
Install west:
pip3 install -U west
-
Get the Zephyr source code:
cd %HOMEPATH%
west init -m https://github.com/renesas/zephyr.git --mr ra8-support-PR1.3 zephyrproject
cd zephyrproject
west update
-
Export a Zephyr CMake package. This allows CMake to automatically load boilerplate code required for building Zephyr applications
west zephyr-export
-
Install additional Python dependencies
pip3 install -r %HOMEPATH%\zephyrproject\zephyr\scripts\requirements.txt
-
Download Zephyr SDK bundle
Note: Support SDKv0.16.8 or above
cd %HOMEPATH%
wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.8/zephyr-sdk-0.16.8_windows-x86_64.7z
-
Extract the Zephyr SDK bundle archive:
7z x zephyr-sdk-0.16.8_windows-x86_64.7z
-
Run the Zephyr SDK bundle setup script:
cd zephyr-sdk-0.16.8
setup.cmd
-
For EK-RA8M1
cd %HOMEPATH%\zephyrproject\zephyr
west build -p always -b ek_ra8m1 samples\basic\blinky
Output: zephyrproject/zephyr/build/zephyr/zephyr.elf
-
For EK-RA8D1
cd %HOMEPATH%\zephyrproject\zephyr
west build -p always -b ek_ra8d1 samples\basic\blinky
-
For MCK-RA8T1
cd %HOMEPATH%\zephyrproject\zephyr
west build -p always -b mck_ra8t1 samples\basic\blinky
west flash
-
Note: It is required to install SEGGER JLink (https://www.segger.com/) for west flash. And make sure installed folder is on your %PATH% environment variable
-
Refer Hardware connection before flash image.
- Cannot init project, FATAL ERROR: already initialized
> west init -m https://github.com/renesas/zephyr.git --mr ra8-support-PR1.3 zephyrproject
=== Initializing in C:\Users\<username>\zephyrproject
FATAL ERROR: already initialized in C:\Users\<username>\zephyrproject, aborting.
zephyrproject directory already exist. Need to remove directory "C:\Users<username>\zephyrproject" then re-run for successful initialization.
- Dependencies are not recognized as an internal or external command, operable program or batch file. Recheck %PATH% environment variable and ensure installed folders for dependencies
For example,
'wget' is not recognized as an internal or external command, operable program or batch file.
Please recheck %PATH% environment variable and ensure installed folder for wget.
-
Fail when west init or update due to network quality
-
Fail when "west init"
In this case, please check connection, then remove "zephyrproject" folder and try again.
-
Fail when "west update"
Please check connection, then try again.
-
-
How to update for %PATH%
-
Open a cmd.exe terminal window as a regular user, setx for PATH. For example, update PATH for JLink
setx PATH "C:\Users\thaoluong\SEGGER\JLink_V794l"
Note: Setting is only available when re-open for cmd.exe terminal.
-
Close cmd.exe terminal window
-
Re-open cmd.exe terminal window and check for PATH update
echo %PATH%
-
- Home
- Getting started guide for Windows environment
- EK_RA8M1 Hardware connection
- EK_RA8D1 Hardware connection
- MCK_RA8T1 Hardware connection
- EK_RA6M3 Hardware connection
- VOICE_RA4E1 Hardware connection
- EK_RA4L1 Hardware connection
- Special topic for DTC(deprecated)
- Run AWS IOT core MQTT sample on EK‐RA8M1
- RZG3S_SMARC Hardware connection
- RSKRX130 Hardware Connection