Content originally posted in LPCWare by jimmcwin on Thu May 31 15:31:18 MST 2012
It works. I just add these 4 lines of code at the reset vector before jumping to __main.
LDR.W R0, =0xE000ED88
; Read CPACR
LDR R1, [R0]
; Set bits 20-23 to enable CP10 and CP11 coprocessors
ORR R1, R1, #(0xF << 20)
; Write back the modified value to the CPACR
STR R1, [R0]
Thanks,
Jim