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.

Enabling MMU for Am3517.



Dear All,

I am Using IAR embedded Workbench Compiler. When i try to enable the MMU the Processor control does not come to Main() function. But as seen in the Below code, when i comment the Line which writes to the first bit of the co-processor register..my code works fine.

Do i need an additional configuration to enable MMU.

MRC p15,0,R1,C1,C0,0
LDR R0,=CP_DIS_MASK ;; 0xFFFFCFFA
AND R1,R1,R0
;ORR INSTRUCTION IS LOGICAL OR ..IT WILL NOT EFFECT THE OTHER BITS OR THE REGISTER
ORR R1,R1,#(1<<12) ; ENABLE INSTRUCTION CACHE
ORR R1,R1,#(1<<2) ; ENABLE DATA_ CACHE
// ORR R1,R1,#0x1 ; MMU IS ENABLED
MCR p15,0,R1,C1,C0,0 ; WRITE TO CP15 REGISTER 

Thanks and regard's

Hrishikesh.