PlatformIO Community

Native support for Zephyr 2.2.0

We’re happy to announce updated support for a new release v2.2.0 of Zephyr Project - a scalable real-time operating system (RTOS) supporting multiple hardware architectures, optimized for resource-constrained devices, and built with safety and security in mind.

What is new:

  • Support for numerous new boards
  • Native support for OpenThread module
  • Minor bug fixes and improvements

Major enhancements in v2.2.0 include:

  • Initial support for the 64-bit ARMv8-A architecture (Experimental).
  • CANopen protocol support through 3rd party CANopenNode stack
  • LoRa support was added through integration of the Semtech LoRaWAN endpoint stack and addition of a new SX1276 LoRa modem driver
  • Added support for numerous new boards and shields.

Use PlatformIO and its professional 1-Click solutions (PIO Unified Debugger, PIO Unit Testing) without dependencies to 3rd party tools or build systems. Everything works out-of-the-box. All famous operating systems (Windows, macOS, Linux) and over 10+ popular IDEs are ready to make you happy.


Links

Examples

2 Likes

I’ve got a zephyr project and it doesn’t seem to be updating to 2.2.0. Hope this isn’t an April fools joke and I’m just doing something wrong…

So you are sure you have updated your platforms and packages (via VSCode GUI, or via pio platform update) but it’s still not showing up in the project?

PS D:\projects\foo> pio platform update

Platform ST STM32

Updating ststm32 @ 6.0.0 [Up-to-date]
Updating toolchain-gccarmnoneeabi @ 1.70201.0 [Up-to-date]
Updating framework-mbed @ 5.51401.200110 [Up-to-date]
Updating framework-libopencm3 @ 1.1.0 [Up-to-date]
Updating framework-arduinoststm32 @ 3.10700.191028 [Up-to-date]
Updating framework-zephyr @ 1.20100.200106 [Up-to-date]
Updating framework-zephyr-hal-stm32 @ 0.20100.190619 [Up-to-date]
Updating framework-zephyr-hal-st @ 0.20100.190924 [Up-to-date]
Updating framework-zephyr-civetweb @ 0.20100.190807 [Up-to-date]
Updating framework-zephyr-fatfs @ 0.20100.190522 [Up-to-date]
Updating framework-zephyr-libmetal @ 0.20100.190530 [Up-to-date]
Updating framework-zephyr-lvgl @ 0.20100.190812 [Up-to-date]
Updating framework-zephyr-mbedtls @ 0.20100.191006 [Up-to-date]
Updating framework-zephyr-mcumgr @ 0.20100.190528 [Up-to-date]
Updating framework-zephyr-nffs @ 0.20100.190523 [Up-to-date]
Updating framework-zephyr-open-amp @ 0.20100.190612 [Up-to-date]
Updating framework-zephyr-openthread @ 0.20100.191024 [Up-to-date]
Updating framework-zephyr-segger @ 0.20100.190421 [Up-to-date]
Updating framework-zephyr-tinycbor @ 0.20100.191016 [Up-to-date]
Updating framework-zephyr-littlefs @ 0.20100.190811 [Up-to-date]
Updating framework-zephyr-mipi-sys-t @ 0.20100.191024 [Up-to-date]
Updating tool-stm32duino @ 1.0.2 [Up-to-date]
Updating tool-openocd @ 2.1000.190707 [Up-to-date]
Updating tool-dfuutil @ 1.9.200310 [Up-to-date]
Updating tool-cmake @ 3.15.5 [Up-to-date]
Updating tool-dtc @ 1.4.7 [Up-to-date]
Updating tool-ninja @ 1.9.0 [Up-to-date]

The above release notes do not include STM32.

However, as you can see in the commits at https://github.com/platformio/platform-ststm32/commits/develop, that has been added very recently. So you need to use the upstream version of the platform in your project to get the newest version. This is documented at https://docs.platformio.org/en/latest/platforms/ststm32.html#upstream.

2 Likes

Also did a workspace clean and rebuild. Deleted the framework-zephyr directory too. Building from this state reports:
CONFIGURATION: https://docs.platformio.org/page/boards/ststm32/blackpill_f103c8.html
PLATFORM: ST STM32 6.0.0 > BlackPill F103C8
HARDWARE: STM32F103C8T6 72MHz, 20KB RAM, 64KB Flash
DEBUG: Current (stlink) External (blackmagic, jlink, stlink)
PACKAGES:
- framework-zephyr 1.20100.200106 (2.1.0)
- framework-zephyr-civetweb 0.20100.190807 (2.1.0)
- framework-zephyr-fatfs 0.20100.190522 (2.1.0)
- framework-zephyr-hal-st 0.20100.190924 (2.1.0)
- framework-zephyr-hal-stm32 0.20100.190619 (2.1.0)
- framework-zephyr-libmetal 0.20100.190530 (2.1.0)
- framework-zephyr-littlefs 0.20100.190811 (2.1.0)
- framework-zephyr-lvgl 0.20100.190812 (2.1.0)
- framework-zephyr-mbedtls 0.20100.191006 (2.1.0)
- framework-zephyr-mcumgr 0.20100.190528 (2.1.0)
- framework-zephyr-mipi-sys-t 0.20100.191024 (2.1.0)
- framework-zephyr-nffs 0.20100.190523 (2.1.0)
- framework-zephyr-open-amp 0.20100.190612 (2.1.0)
- framework-zephyr-openthread 0.20100.191024 (2.1.0)
- framework-zephyr-segger 0.20100.190421 (2.1.0)
- framework-zephyr-tinycbor 0.20100.191016 (2.1.0)
- tool-cmake 3.15.5
- tool-dfuutil 1.9.200310
- tool-dtc 1.4.7
- tool-ninja 1.9.0
- tool-openocd 2.1000.190707 (10.0)
- tool-stm32duino 1.0.2
- toolchain-gccarmnoneeabi 1.80201.190214 (8.2.1)

oh ok, I missed that. I’ll pull the upstream, thanks for the link.

1 Like

Per ST STM32 dev/platform 6.1.0 this is now pushed as a normal update so you’d just need to update your platforms and put platform = ststm32 in the platformio.ini to get the normal latest release-version.