AnsweredAssumed Answered

MPC5745R memory management through Simulink

Question asked by Raghu Rajappa on Apr 5, 2019
Latest reply on Jul 3, 2019 by Raghu Rajappa

Intention - Isolation of Software Components (data) so that data sensitive to one component cannot be overwritten by another component (to achieve safety and data protection).

in C - In C, we could simply define pointers to specific memory location and pass these pointers to be updated by the Software Components.

The problem - I have is in Simulink, I don't know how to achieve this separation of memory. Ofcourse I understand that the code is generated from Simulink to C. But i cannot apply the above mentioned technique in Simulink where I can pass pointers (pointing to specific memory location) through the Software Components. What are the other ways I can manage data protection in Simulink such that the generated code is usable with very little modification. The little modification I can foresee is modifying the compiler/linker files. Also please note, I do understand that the SMPU shall be used but lets assume I know how to use the SMPU to configure the regions of memory. 

 

Rephrasing the question - Assuming I have used the SMPU to configure the regions of memory and the appropriate rights. How can I protect data of the software components through Simulink? 

Outcomes