Content originally posted in LPCWare by jdesbonnet on Mon Jun 22 02:15:29 MST 2015
Do you have a debug probe (eg LPCLink) that you could hook up to the Serial Wire Debug pins? You could try to see where the program counter is when it's hanging. If that isn't working it would indicate some sort of hardware problem alright.
Do you have an oscilloscope? (personally I think it's almost impossible to do embedded development without one). I often find using a debug pin handy. I'd pulse it to indicate that a certain point is reached. For example I can pulse it once when entering an interrupt service routine, and twice on each iteration of the main loop... etc. You could try to pulse a pin at some of the critical points of your boot procedure. Of course you need to initialize the GPIO first before that will work.