Content originally posted in LPCWare by cakehuang on Wed Apr 10 21:52:39 MST 2013
I had Hardfaul exeception when runing ADC example project in debug mode under LPCXpresso v5.1.2_2065. Further investigation shows it is the instruction of floating library linked in causes this exeception. The instruction which causes this exeception is a branch instruction but it is illeagal. I am sure this example project is OK under LPCXpresso v4.3.0_1023.
Step to reproduce this problem:
1, clean and then rebuild lib_small_printf_m0
2, clean and then rebuild ADC
3, download and debug, then run. Code execution will stop at hardware fault handler.
By the way,I am using LPCXpresso 1114 board and had LPCXpresso v4.3.0_1023 and LPCXpresso v5.1.2_2065 installed in different folder as following:
C:\nxp\LPCXpresso_4.3.0_1023\
C:\nxp\LPCXpresso_5.1.2_2065\