Part Number: DRA821U
Put .bootCode and .startupCode section into ddr, they cannot work normally.
The code enters an abnormal state,maybe Prefetch Abort exception.
What are the reasons for this?
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.
Hi,
Please provide the following inputs:
Regards
Karthik
used no boot mode.
2.Which core are you trying to put this startup code in DDR and it is causing this exception?
MCU1_0
3. And also specify whether you are trying this on the EVM and provide details of the SDK.
Same result on the EVM board,SDK Version 7.3.
I guess it may be a problem with cache or mpu permissions.
Hi,
Upon PORz, R5F's default MPU (memory protection unit) is not setup to have execute permissions for DDR. Till you do not run the MPU init function from the startup code, hence overriding the default MPU settings, you can not execute code from DDR.
Default R5F MPU regions can be seen in R5 TRM - https://developer.arm.com/documentation/ddi0460/d/Memory-Protection-Unit/About-the-MPU . You will see execute never for address > 0x80000000.
Regards
Karan