I am trying to use the latest Zephyr branch (v2.4.0) with my PlatormIO nordicnrf52 Zephyr project.
I have cloned GitHub - zephyrproject-rtos/zephyr: Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures. and I was wondering how I can set it to be used? I have tried, unsuccessfully to use information from https://community.platformio.org/t/set-package-repository-and-version-in-platformio-ini/14211/7.
On a related note when is Zephyr v2.4.0 going incorporated into PlatformIO?
Further information is needed on what the exact error was if you want to go that path.
Only the devs can answer that one. I’ve seen that @valeros has done an Arduino-core update for the nordicnrf52 platform. Maybe Zephyr is next?
I have cloned GitHub - zephyrproject-rtos/zephyr: Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures. to “/Users/mdcraver/opt/zephyr/”.
Using this I tried the following and gotten the following error.
framework = zephyr
framework-zephyr @ file:///Users/mdcraver/opt/zephyr/.git
Tool Manager: Installing file:///Users/mdcraver/opt/zephyr/.git
Error: Could not find one of ‘package.json’ manifest files in the package
The terminal process “platformio ‘run’” terminated with exit code: 1.
You can create one based on the previous package.json (
"description": "Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures",
also don’t forget to copy over the
~/.platformio/packages/framework-zephyr/scripts/platformio folder again because that’s no in the main Zephyr repo.
Also note that Zephyr is actually multiple packages
so I think you also need to at least update
framework-zephyr-hal-nordic to the 2.4.0, which is at GitHub - zephyrproject-rtos/hal_nordic.
I did these things to use master branch of Zephyr:
- Make sure that Zephyr is already installed automatically via Platformio (path
~/.platformio/packages/framework-zephyr/ should exist)
- Clone Zephyr repo (f.e. to
~/Downloads/zephyr-repo/) and checkout to desired commit
- Add this line to platformio.ini:
platform_packages = framework-zephyr @ file:///Users/myUser/Downloads/zephyr-repo/
package.json file and
./scripts/platformio folder from
~/.platformio/packages/framework-zephyr/ to your
- Run clean and build, it should “install” your desired revision of Zephyr from
thank you for your clear explanation. I installed another version of zephyr as you described here. In building however I got an error saying:
.pio/build/nrf52833dk_nrf52833/zephyr/dev_handles.c’ not found, needed by target `.pio/build/nrf52833dk_nrf52833/zephyr_final/zephyr/dev_handles.c.o’.
Do you know what would cause this issue?