Page 1 of 1

[STM32H747] Communicating between cores on STM32

Posted: Wed Jul 14, 2021 2:24 pm
by Workshopshed
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?