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.

Memory Protection Unit (MPU) initialization in OMAP L138

I'm running linux on ARM and DSPBIOS on the DSP core and I'd like to reserve a RAM area to ARM core and another area to DSP core and to protect those areas from erroneous access attempts from each cores to the other one. To do this I think I should initialize according to my needs the internal Memory protection unit. My question is: where is better to proceed in this kind of operation. I mean ubl, u-boot, linux or dspbios? Is there a kind of driver or software subsystem to configure to do this?

Thank you

Paolo

  • Paolo,

    You can enable memory protection on OMAPL13x by directly programming the the memory protection registers described in the Technical reference manual. If you want to do this through linux you might have to use devmem to write to the physical address of those registers. We have in the past provided a csl based example that demonstrates this functionality. Please refer to the forum thread here to obtain the reference code.

    http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/158135.aspx#592970

    I am not aware of a software driver that will provide you canned APIs to do this but if some one on the community has created one, they might be able to simplify your effort in OS specific environment.

    Regards,

    Rahul