How to use latest zephy build / rc

If you need to use it absolutely now you can always use the platform_packages directive to point any package to another source. In your case you might be interested in the framework-zephyr package (or another package like framework-zephyr-fatfs or whatever).

First you should have a look at the current state of that package by going into your packagefolder (C:\Users\<user>\.platformio\packages\framework-zephyr or /home/<user>/ .platformio/...) and checking out the files. The main Zephyr core files should be there along with a package.json saying e.g.

{
	"description": "A small, scalable open source RTOS for IoT embedded devices",
	"name": "framework-zephyr",
	"url": "https://www.zephyrproject.org/",
	"version": "2.20200.200401"
}

Here the version Zephyr version is e.g. 2.2.0 ancoded as the 202000.

You should be able to create a new repository (e.g. github), add the newer Zephyr core files (in the same structure as the current package) and add a package.json with an increase version, and then say

platform_packages = 
    framework-zephyr @ <your github url here> 

in the platformio.ini.

The other way is of course to wait for the PlatformIO platform devs (stm32, nrf52 or whatever platform you’re working with) to update the PlatformIO package repository with new versions of framework-zephyr-*.

1 Like