TMS570LC4357: Configuration of MPU

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Hi Team,

I am trying to partition flash and configure the MPU for TMS570lc4357 controller. I have enabled freertos and gcc compiler for this. I see that in Halcogen the initial 4 regions are disabled. Why is it so?

image.png

I am trying to partition and protect the code in flash from overwriting. How can it be achieved best? Is using MPU while enabling remote software update makes sense? Because in that case, MPU configuration has to be dynamically managed depedning on which flash section the cotroller is booting from. 

regards,

Kamlesh 

  • Hi Kamlesh,

    Regions 1-4 are disabled by default because

    Enabling them incorrectly can lock you out of flash or stack very early, like hard fault before main();

    If you verify linker cmd file for RTOS project, Kernel using some part of flash and RAM so enabling them incorrectly causes the problems to run boot code itself. This is the reason disabled for access in HALCoGen. 

    If you want to modify them, you can do it over code directly.

    --
    Thanks & regards,
    Jagadish.