Skip to main content
Associate
March 20, 2024
Solved

Programming STM32H745: shared routine between CM7 and CM4

  • March 20, 2024
  • 1 reply
  • 1295 views

Hi,

Is it possible to run on the M7 core a piece of program (subroutine call - no input, no output parameters) written, compiled and loaded for the M4 core (i.e. to have global access to program code)?

Best

 

Best answer by mƎALLEm

Hello, 

If you need a shared routine between the two cores (just an algorithm): theoretically yes.. But you need to do the test. Refer to the AN4667 / paragraph 1.1:

SofLit_0-1710948534115.png

 

1 reply

mƎALLEm
mƎALLEmBest answer
Technical Moderator
March 20, 2024

Hello, 

If you need a shared routine between the two cores (just an algorithm): theoretically yes.. But you need to do the test. Refer to the AN4667 / paragraph 1.1:

SofLit_0-1710948534115.png

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
ieiAuthor
Associate
March 20, 2024

Thank you for the answer. 

This is good beginning. The core of the  question was about the following - do M4 and M7 cores share one and the same program memory (common address space) ? And if YES, if for M4 some address is 0x1000, is it the same for M7?

Best reagdrs

mƎALLEm
Technical Moderator
March 21, 2024

Hello;

The flash memory is shared between the two cores and the flash addresses are seen in the same way.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.