Now you can run Arduino and MicroPython side-by-side on multi-core microcontrollers
Could thirtieth, 2024
—We’re excited to announce a strong new characteristic that we’ve been engaged on in collaboration with the MicroPython group!
Beginning with the upcoming launch (v1.23), MicroPython will provide assist for Uneven Multiprocessing (AMP) on multi-core microcontrollers, primarily based on the business normal OpenAMP framework (see the MicroPython openamp module documentation for extra data).
This permits Arduino customers to run each an Arduino sketch and a MicroPython program concurrently on multi-core modules and to speak between the 2. Supported boards embrace the Arduino GIGA R1 WiFi, Portenta H7, and Nicla Imaginative and prescient.
The communication between Arduino and MicroPython is facilitated through the use of Distant Process Calls (RPC). This enables us to profit from the simplicity of utilizing MicroPython whereas unlocking entry to all of Arduino’s wealthy libraries from MicroPython.
When you ever discovered your self wanting to make use of MicroPython for a challenge, however have been caught on this one library that’s solely obtainable for the Arduino language… your drawback is now solved!
MicroPython AMP assist offers the next key options:
- Minimal and user-friendly API
- Compatibility with Arduino’s RPC library
- Distant processor lifecycle administration, resembling loading firmware and booting the secondary core
- Assist for synchronous and asynchronous distant process calls
- Entry to Arduino’s libraries from MicroPython
For additional particulars, please see the dual-core tutorial part on utilizing MicroPython with the RPC library on Arduino Docs.
You spoke, we listened. The characteristic has been on the group’s wishlist for some time, so we couldn’t be any extra proud to deliver you this new development! We’re excited to see what sort of inventive functions it’ll unlock for our group. Go away a remark within the part under or share your endeavors on the Venture Hub!