Getting started with zephyr on DA1469x: Difference between revisions

From Renesas.info
(Added installation)
(Added hardware instructions)
Line 3: Line 3:


Please note that micropython does NOT support building on windows. Windows users that want to build micropython should use WSL. A known issue with WSL is poor USB support, so that will complicate flashing hardware.
Please note that micropython does NOT support building on windows. Windows users that want to build micropython should use WSL. A known issue with WSL is poor USB support, so that will complicate flashing hardware.
== Testing on hardware ==
With the toolchain installed it's time to try flashing the board with a Zephyr program. The classic first project is blinky.
First, open a terminal in the zephyr folder under zephyrproject(or whatever you called this folder during installation) and build blinky.
<code>west build -p auto -b da1469x_dk_pro .\samples\basic\blinky\</code> on Windows
or
<code>west build -p auto -b da1469x_dk_pro ./samples/basic/blinky/</code> on Linux
After a successfull build, the board can be flashed by running <code>west flash</code> . This command runs EzFlashCLI to program the binary to flash. As EzFlashCLI isn't in requirements.txt yet, it may throw an error like EzFlashCLI not found. It can be installed using pip: <code>pip install ezflashcli</code>
Note for WSL users: if west flash fails to find the JLink device it's possible to invoke powershell commands from WSL. The command to flash from WSL would be <code>powershell.exe ezflashcli image_flash ./build/zephyr/zephyr.bin</code>

Revision as of 08:56, 12 June 2023

Installing the toolchain

The process to install Zephyr is described in the zephyr docs.

Please note that micropython does NOT support building on windows. Windows users that want to build micropython should use WSL. A known issue with WSL is poor USB support, so that will complicate flashing hardware.

Testing on hardware

With the toolchain installed it's time to try flashing the board with a Zephyr program. The classic first project is blinky.

First, open a terminal in the zephyr folder under zephyrproject(or whatever you called this folder during installation) and build blinky.

west build -p auto -b da1469x_dk_pro .\samples\basic\blinky\ on Windows

or

west build -p auto -b da1469x_dk_pro ./samples/basic/blinky/ on Linux

After a successfull build, the board can be flashed by running west flash . This command runs EzFlashCLI to program the binary to flash. As EzFlashCLI isn't in requirements.txt yet, it may throw an error like EzFlashCLI not found. It can be installed using pip: pip install ezflashcli

Note for WSL users: if west flash fails to find the JLink device it's possible to invoke powershell commands from WSL. The command to flash from WSL would be powershell.exe ezflashcli image_flash ./build/zephyr/zephyr.bin