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.

Hercules RM48L952ZWT Board - MPU Support

Other Parts Discussed in Thread: HALCOGEN

Hi. We are using the TI Hercules RM48L952ZWT Board.  For MUP support, I can see the tab in Hercules for R4-MPU-PMU, and it is by default enabled under general configuration as well as regions 1 through 10.  If we are using the Micrium  uC-OSII on this platform which is not MPU aware, does that mean we must disable MPU in HalCoGen? Or is there a way to still enjoy the benefits at the driver level even if the RTOS has not been ported for MPU support.  Thank you.

  • Hi Tammy,

    As you stated, the MPU driver generation is "enabled" by default in Halcogen as are most, if not all, of the drivers. This means that the drivers are generated by default, but it is up to the user to add the calls to the init function and any other MPU functions needed before it is truly active in your application. So, unless you are calling this in your main, it is most likely not actively performing the MPU function.

    With that said, the default set up might be useful in that it is covering a wide swath by only allowing access to the defined regions of memory and addressable space so if your code accesses an address that is in a "hole" in the architecture address map, an MPU violation will occur. I could see where this could be beneficial even when using an OS that is not MPU aware. Simply stated, the MPU violation could be treated as an exception just like other aborts and exceptions in the system. However, I would advise you check with you OS provider about this implementation and make sure it won't create any conflicts with the OS.