I am trying to use MPU2 on the OMAP-L138 to prevent the DSP from accessing external DDR memory that is used by the ARM. It does not seem to be enabled, because memory does not get protected when I set up the address ranges. I downloaded some sample code that was posted by Daniel Allred as C6748_mpuTest.zip from:
http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/158135.aspx
I can run the code on my target using a Blackhawk emulator, but it does not protect the memory. I did make a few minor modifications to match our target. I changed the linker command file to put the code in external memory at 0xc6000000, and I set the test start address in main.c to 0xc8000000. I also commented out the MPU1 test.
When I execute the test on our target, all the writes and reads work, and no MPU access interrupt is generated. Is MPU2 somehow disabled? On our target, the ARM runs and does some initialization prior to me connecting the JTAG debugger.
I zipped up my test project along with results. Can I send it to someone?
Thanks, -Bob