Content originally posted in LPCWare by MarcVonWindscooting on Mon Dec 30 17:04:51 MST 2013
Hi OnkelJack,
i just run your binary an my LPC812 board.
After a 1.5s low on P0.2 it toggles at 1 Hz. No interrupt loop.
All pins on my board were left open in this test, except for the programming pins PIO0.0, PIO0.1, PIO0.4, PIO0.5.
The crystal is populated, too. See schematic. The device is a sample, Rev 2A, not the ones available today (PIO0.12 as BOOT).
This result seems to confirm you have a hardware problem.
But when I reduced the operating voltage down to 2.0V - to my surprise - I have a randomly toggling P0.2 at an average about 2..4.5kHz.
I don't know, if you handle brown-out so far and if that can be an explanation.