This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Usage Fault: No coprocessor

Hi,

I am trying to run a code on LPC4088 using MCUXpresso IDE. 

In part of this code, when I want to initialize the ABI protocol (AbiInit() routine), the IDE gave a hard fault error. Looking into a suggestion provided here http://chmorgan.blogspot.com/2013/06/debugging-imprecise-bus-access-fault-on.html, I added "*(uint8_t *)0xE000E008 |= (1<<1);" to main(). Now, what I get as the error is NOCP: No coprocessor Usagefault. The processor does not support coprocessor instructions. 

Also going step by step putting breakpoints in the Disassembly, I can see this line is where the error happens: ldr.w   pc, [pc]        ; 0x51144 <__AbiInit_veneer+4>

and this is the value in pc register: 0x51140 <__AbiInit_veneer>

Any ideas on how to solve this is greatly appreciated. 

Note: based on this document https://web.eecs.umich.edu/~prabal/teaching/eecs373-f10/readings/ARMv7-M_ARM.pdf, I tried to monitor CPACR register, this is the value in memory starting from 0xE000ED88: 00F00000 00000000 00000800 00000000 00000000.