cancel
Showing results for 
Search instead for 
Did you mean: 

Programming STM32H745: shared routine between CM7 and CM4

iei
Associate II

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
SofLit
ST Employee

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 on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

4 REPLIES 4
SofLit
ST Employee

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 on "Accept as Solution" on the reply which solved your issue or answered your question.
iei
Associate II

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

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 on "Accept as Solution" on the reply which solved your issue or answered your question.
iei
Associate II

Thank you!

After experiments I'll post the feedback.