Content originally posted in LPCWare by jab on Wed Jun 13 11:02:34 MST 2012
The code works because I am using the IRC oscillator (on these chips it is easy to start with that). I had tried to get the UART working but the clock output pin is much simpler.
However you do make a good point about the crystal...I have checked it was oscilating on the crystal pins and it is but it is a 25MHz XTAL and I dont know what the SystemInit function tries to set up. I suppose the core will die if it assumes a lower frequency and the frequency goes out of range.
At least it gives me a place to start. It is silly though because the M0 CMSIS library starts using the IRC and then the user must switch to the other clocks. Why this one switches straight to the external crystal I dont know!
Anyway thanks, I will post if I run into further problems or solve it :-P