Arduino Opta using both cores with OTA

Hey Fellows,

does anyone know whether it's possible to upload sketches to the M7 and M4 core separatly by using the OTA function? Currently i still didn't find a way (except usb connection) for uploading sketches to core M7 and core M4

Hello @alexandertonn.

I made a small tutorial documentation for myself explaining how to divide the schedules in OPTA and it is 100% correct and I believe it will help you.
Furthermore, I saw that you want to upload via OTA, in this case only the M7 processor would accept via OTA, in the case of the M4 it is not possible, as the Wi-Fi firmware does not run on it.

Attached is the tutorial in PDF, the writing is in Portuguese BR, as I am Brazilian, it was a very simple tutorial that I did and I didn't care much about the writing, so forgive me for any spelling errors.

How to divide schedules in each OPTA Core.pdf (402,1,KB)

Hey @wordbrda ,
thank's a lot for your answer. Basically the procedure for uploading to both cores is clear. My idea was (and i already programmed it) that i use the same sketch on both cores and only #ifdef CORE_CM7 and #ifdef CORE_CM4 is deciding which parts will be executed. On the M7 core i would like to execute the control logic and Modbus RTU and on the second core i would like to do the iot stuff. I also programmed a class for sharing memory between the cores by using the hardware semaphore, but your argument sounds logic. My Opta don't have wifi but i can imagine that some libraries are missing for the M4 which are necessary for IoT functionality.

I understand, during all the tests I did it was not possible to use the IoT Cloud / connection to the cloud because it actually gave an error and after some research I noticed that only the M7 core is ready for OTA.
You said you made a memory sharing schedule between cores, can you share that schedule with me?

I have to update my github repo and to document the functions and after that i can send you still this Weekend a link via private message :slight_smile:

Great, it will help me a lot too!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.