Getting started with zephyr on DA1469x: Difference between revisions

From Renesas.info
(work on switch to dev branch)
mNo edit summary
Line 27: Line 27:


<code>git checkout micropython-demo-2023</code>
<code>git checkout micropython-demo-2023</code>
<code>west update</code>
This will pull in the latest code, and an updated HAL with the cmac binary included.

Revision as of 12:24, 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

Switching to the development branch

At this moment, the main branch of Zephyr has 69x drivers for GPIO, UART, SPI, I2C and USB. A notable thing that's missing from this list is BLE. This driver is done and fully operational, it just didn't make the cutoff to be merged into main before the 3.4 release deadline. This can be found on the Dialog Semiconductor github page. To switch to the updated branch you can run the following commands from the zephyr folder.

git remote add public https://github.com/dialog-semiconductor/zephyr.git

git fetch public

git checkout micropython-demo-2023

west update

This will pull in the latest code, and an updated HAL with the cmac binary included.