Content originally posted in LPCWare by inspire on Wed Apr 15 11:16:16 MST 2015
Hi,
to read the device number, I tried these commands
part_id = Chip_IAP_ReadPID();
unique_id = Chip_IAP_ReadUID();
but on both calls, the LPC goes directly to a HardFaultHandler when executing the line
iap_entry(command, result);
:quest:
Where can I find the device number instead?
The LPC has no problems with booting after the first manual reset. After this reset, I have no problems when flashing a new software with the LPCLink2 or when I hit the "restart" button while debugging. But before this first manual reset, the LPC doesn't boot and even the LPCLink2 is unable to communicate with it.
The QSPI flash IC is exactly like it was when I unpacked the board.
I think your hint with P2_7 is the solution. In fact I didn't pay attention at this point: it is at low level after reset. I will remove the pull down resistor here tomorrow and try it. Thanks a lot!