[STM32H747] Communicating between cores on STM32

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
Workshopshed
Posts: 2
Joined: Wed Jul 14, 2021 10:35 am

[STM32H747] Communicating between cores on STM32

Post by Workshopshed » Wed Jul 14, 2021 2:24 pm

Jim sent me here from Twitter.

I've recently started experimenting with an Arduino Portenta ( STM32H747 ) and wish to use its M7 core running Micropython to do some image processing from a camera and its M4 core connected to some NeoPixels. The changes to the lights would be driven from the results of the image processing so I'd want to communicate between the cores. I've found some examples in C that do that but wanted one of my cores to be running Micropython as it makes the image processing aspect easier.

https://github.com/TannerGilbert/Arduin ... RPC_m4.ino
https://github.com/arduino/ArduinoCore- ... internal.h

I've seen a reference to the RPC in the OpenMV port of Micropython that can take in a serial port as a parameter.
https://github.com/openmv/openmv/blob/m ... udrate9600

What port would I use to do core to core communication?
Is there a different way Micropython would communicate between cores that is recommended instead?

Post Reply