We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi !
In order to call some functionality hard-coded in my board ROM (HAB from NXP i.MX6 board), I need to shut down the MMU: the ROM is not position independent. In particular, it is not always possible to map it and the devices correctly due to restriction in my OS.
I order to shutdown the MMU, I started first to shutdown and invalidate the I-Cache, BP and L1/L2 D cache, then I run the ROM code, and then I re-enable everything.
I was wondering if I could keep the I-Cache and BP activated running ROM code, and what was the correct code sequence ? At the moment I do the following:
I think I still need to invalidate I cache & BP before shutting down the MMU, but could I keep them enabled ? Or should I reenable them before calling the HAB ROM code ?
Best,
Vincent