Tool/software:
Hi there,
is there any example project and documentation / application note to set m4f subsystem in isolation mode for functional safety purpose?
Best,
Jinlong
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hi there,
is there any example project and documentation / application note to set m4f subsystem in isolation mode for functional safety purpose?
Best,
Jinlong
Hello Jinlong,
Please look at the chapters below for more details about how to Isolate the M4F core from MAIN domain .
Next, look at the example below and on the M4F side the above flow chart is implemented.
....examples\drivers\safety\reset_isolation
So, when you do WarmReset the SOC, the Reset interrupt will go to M4F core.
In the M4F core, we will try to disable and enable the MAIN2MCU and MCU2MAIN bridges and M4F allows the MAIN domain reset propagation.
Please remember that in the M4F core is isolated, user can't access the MAIN domain peripherals from the MCU domain and MCU peripherals from the MAIN Domain .
R5F and M4F cores run independently when they fully isolate the M4F core from MAIN domain .
Please let me know if you still need any help..
Regards,
Anil.
thanks, it is still difficult to understand. Questions.
Q1: Are the following combinations possible?
1. Main to MCU: not isolated. MCU to main: not isolated.
2. Main to MCU: isolated. MCU to Main: not isolated.
3. Main to MCU: not isolated. MCU to Main: isolated.
4. Main to MCU: isolated. MCU to Main: isolated.
Q2: I wish to have Main and MCU isolated from each other. However, I wish to have MCU and Main domains share some information for commands/responses. In additional, I may need to share 2 gpio pins.
Is it possible?
Q3: Is there any concept or application note about possible concept of software update on OSPI flash when Main and MCU domains are isolated? I image that OSPI flash needs to be partitioned at least to two areas, one for Main and one for MCU.
Hello Jinlong,
1. Main to MCU: not isolated. MCU to main: not isolated.
Yes, this is possible in all MCU+SDK examples , M4F core not isolated.
In this case, the user can access the MAIN domain peripherals from the MCU domain and the MCU domain can access the MAIn domain peripherals and there are no issues.
2. Main to MCU: isolated. MCU to Main: not isolated.
3. Main to MCU: not isolated. MCU to Main: isolated.
For the above two queries, The Reset is propagated to through the MAIN domain.
The MAIN domain gets Reset and the M4F core is isolated and M4F core does not effect the Reset operation.
And users can configure the MAIN domain only to access the MCU domain peripherals s and, MCU domain can't access the MAIN domain peiperehls in M4F core isolated .
And, users can also configure the MCU domain to only access the MAIN domain peripherals s and the MAIN domain can't access the MCU domain peripherals in M4F core isolated .
This is not supported in MCU+SDK. But, I can help you with how to do it.
4. Main to MCU: isolated. MCU to Main: isolated.
Yes , this is possible.
The example below supports the same above method .
....examples\drivers\safety\reset_isolation
I wish to have Main and MCU isolated from each other. However, I wish to have MCU and Main domains share some information for commands/responses. In additional, I may need to share 2 gpio pins.
Is it possible?
Yes, this is possible.
In this case, when the Warmreset happens on the SOC. The Reset is effected to the MAIN domain and not the MCU domain.
And, if you use the MCU domain peripherals in the MAIN domain for every Reset, all MAIN domain and MCU domain peripherals the being initialized.
If you use the MAIN domain peripherals from the MCU domain during the Reset, there is no effect if you read / write and performed any operation on it.
After Reset is propagated again, you need to initialize the same MAIN domain peripheral in M4F core application .
This is not supported in MCU+SDK. But, I can help you with how to do it.
: Is there any concept or application note about possible concept of software update on OSPI flash when Main and MCU domains are isolated? I image that OSPI flash needs to be partitioned at least to two areas, one for Main and one for MCU.
you really don't need any portion of domains for OPSI in the Isolation Method .
As usual, sending multiple app images to SBL. SBL will write app images on the MSRAM/IRAM memories respectively.
In the Isolation case, SBL will only write the M4F app image on IRAM for only one time and not repeated for every Reset. This care is already taken in the SBL and users no need to take care of SBL again.
Regards,
Anil.
Thanks for detailed answer. It sounds a bit complex - we will take time to understand your answers.
Hello Jinlong,