Reading variables from a local file

I do not have LPC1768 so can not test on real hardware. Also I not see anything wrong in your code.
But anyway I think it is waste of time. C027 is based on LPC1768 but the LPC1768 board has a addition IC memory for that feature. So do you are sure C027 also has it?

BR, Jan