Fix bug on lpc17xx