How to make a memory segregation?

We are coding for battery management system which is implemented for both safety protection part and non safety part. It is asked that these two part have to be segregated in memory allocation so that non safety part shall not interact with safety part. I would like to see how to setting and how to test for this requirement.
Best tegards,

To segregate the memory allocation for the safety protection part and non-safety part of the battery management system, you can define two separate memory sections in the microcontroller memory map. You can then assign the safety protection code to the memory section reserved for safety-critical functions, and the non-safety code to the memory section reserved for non-safety functions.

For this you have to edit the linker script.