![]() ![]() ![]() The non-discoverability argument is a little tougher, but adaptation of things like Linux’s devicetree system can work really well for smaller architectures (and that’s what Zephyr does). The variability in peripherals is just as huge. Linux runs on everything from little ARM processors (and some people even squash it onto STM32s), up to IBM z/Architecture monsters and supercomputers. But the variability argument doesn’t wash at all. My initial objection was that the architectures at the smaller end are too variable, the peripherals are too variable, and the peripherals generally aren’t auto-discoverable like they are on larger architectures. Why not have something similar for smaller systems? It supports more or less all hardware you can think of (plus a lot you’ve never heard of), and it’s a sort of universal compilation target for that scale of system. If you want an OS to run on any architecture with a paging MMU, you use Linux. For comparison with Zephyr, think of Linux. When I first saw them, I wasn’t so keen on this idea, but after thinking about it a bit, it’s grown on me more. They are both what I think of as “maximalist” projects, aiming to support everything everywhere (or more or less). What are PlatformIO and Zephyr? From the PlatformIO website: “PlatformIO is a cross-platform, cross-architecture, multiple framework, professional tool for embedded systems engineers and for software developers who write applications for embedded products.” And from the Zephyr website: “The Zephyr Project strives to deliver the best-in-class RTOS for connected resource-constrained devices, built be secure and safe.” Fortunately, Valerii Koval already wrote a tutorial about using Bluetooth on the nRF52840 in this setup, which you can read here! I’ll be looking in there for help with Bluetooth when we get to it. Here, I’m going to try all this stuff using PlatformIO + Zephyr. This blog originally ran on Ian’s website at. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |