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,
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.