Code begn working after modifying cr_startup_lpc17.c interrupt vectors.
Frequency counter is not accurate but LED and other tasks including
button work flawlessly.