2020-06-10 04:06 AM
hi I wanted to ask regarding stm32h7 as I have two main available one for m4 main and the other for m7 main, if I process a variable in the cortex m4 how can I transfer it to the m7?
Can i use mdma or dma.....
Tanks
2020-06-10 05:01 AM
There are several examples in the STM32H7 Cube FW in the H745 folders, where this scenario is used.
In general:
2020-06-10 05:23 AM
Here are two of the example projects dealing with shared memory:
2020-06-10 05:50 AM
The two cores don't understand the variables in the other. Each core has code compiled and linked independently.
Determine what information you are passing or sharing, and encapsulate that in a structure with the same form, and at address space visible to both cores. Pointers can be used to set the structure address.
2020-06-10 08:35 AM
You can also use the MDMA. The m4 core can initiate an mdma block transfer which can then cause a transfer complete interrupt on the m7. No cache problems, just make sure the m4 knows the destination address somehow.