platform-nordicnrf52 icon indicating copy to clipboard operation
platform-nordicnrf52 copied to clipboard

Update Zephyr to 3.0.0

Open zpm1066 opened this issue 3 years ago • 12 comments

As per https://docs.zephyrproject.org/latest/releases/release-notes-3.0.html, this release now supports Raspberry Pi Pico RP2040.

Please update Zephyr to 3.0.0 for all platforms using Zephyr, including Raspberry Pico. Thank you.

zpm1066 avatar Feb 28 '22 03:02 zpm1066

Any updates? Thanks.

zpm1066 avatar Apr 02 '22 20:04 zpm1066

Hello,

any progress on this side ?

Cyril-Roques avatar Sep 20 '22 08:09 Cyril-Roques

Unfortunately nothing yet. Pretty disappointing.

zpm1066 avatar Sep 21 '22 03:09 zpm1066

Any traction on getting PlatformIO to support Zephyr RTOS v3.x?

Is this a dead end for all platforms (nRF 52 series, nRF53, nRF9160, STM32, Raspberry PI Pico, and ESP32) that use Zephyr RTOS? If so, it'll be a huge disappointment and folks would move on to using Nordic Semi nRF Connect for VSCode (nRF52, nRF53, nRF9160) and command line Zephyr build process.

zpm1066 avatar Oct 04 '22 23:10 zpm1066

Hi all.. I've been trying to use Zephyr 3 on my platformio setup for the past few days and found out - the worst way - that due to major changes done by Zephyr on its CMakeLists.txt, the platformio-build*.py scripts are no longer able to compile the project along with its zephyr binaries.

In order to do that one must modify platformio-build.py (and maybe also platformio-build-pre.py) to consider the new structure introduced by Zephyr 3 to build its artfacts. I've tried to do that and got (surprisingly due to my lack of knowledge about build process) success to build and generate a firmware.hex:

image

Unfortunately the work is still in progress and I wont be able to do for the next feel days, the changes I've done on python scripts still doesn't consider the three-phase build process Zephyr now relies on: zephyr-pre0, zephyr-pre1 and zephyr-final (previously it was just zephyr-prebuilt and zephyr-final), and thus, the following warning is generated due to incomplete build instructions:

image

To anyone that maybe wanting to upgrade its environment, please see instructions on [email protected]:nilmonto/platformio-zephyr-3.git

Of course if someone from Platformio have mercy of our soul and translate the CMakeLists.txt into instructions of an updated pair of scripts to properly build Zephyr3 binaries I'm sure we all would be very thankful =)

nilmonto avatar Oct 07 '22 14:10 nilmonto

Would be great to have zephyr 3 for nrf52. I upgraded some parts (like littlefs) in my own but zephyr itself it is too much for me. If someone could bring some light it would be awesome. I spent many hours without success, but I will keep on it.

@nilmonto can you describe/list what is needed appart from translating CMakeLists.txt? I would like to help but I'm a little overwhelmed and don't really know the goals to achieve.

maxpowel avatar Nov 10 '22 09:11 maxpowel

FYI https://github.com/zephyrproject-rtos/zephyr/pull/53303

beriberikix avatar Dec 23 '22 20:12 beriberikix

Pretty much a year later and not even a comment. Seems reasonable to assume that platform io is no longer supporting the nrf52 boards, or at least zephyr on the nrf52 boards?

bradjc avatar Feb 08 '23 13:02 bradjc

Pretty much a year later and not even a comment. Seems reasonable to assume that platform io is no longer supporting the nrf52 boards, or at least zephyr on the nrf52 boards?

Agreed. It's unfortunate. I've just got an Adafruit ItsyBitsy nRF52840, and I was disappointed there's no support for it in the old version of Zephyr that PlatformIO is using. It's a real shame because I love PlatformIO for everything else I have developed on.

GeoSpark avatar Feb 09 '23 22:02 GeoSpark

Yes, it’s an unfortunate stand taken up by the PlatformIO folks. Luckily there is a much better solution for nRF52840 and Zephyr. Use the excellent Nordic Semi’s nRF Connect SDK. I’ve been using NCS for the last few years. It has now come a long way. Updates are regular, VSCode extensions are superb! However, I do miss the ease of switching between nRF, STM32 and Raspberry Pi Pico with Zephyr that PlatformIO provided up to 2.7.x. You never know, common sense may prevail and we may get Zephyr support upgraded to 3.x for PlatformIO.

zpm1066 avatar Feb 09 '23 23:02 zpm1066

So, since Zephyr 3 is supported since Sep 2023, https://piolabs.com/blog/news/platformio-oss-september-2023-updates.html (just not for nRF) should we expect any progress on this?

positron96 avatar Jun 14 '24 11:06 positron96