AnsweredAssumed Answered

LPC1124 HARDFAULT WHILE INITIALISING A PIN AS OUTPUT

Question asked by pascal carreweyn on Mar 7, 2019
Latest reply on Mar 7, 2019 by jeremyzhou

i'm trying to make a simple led switch on or off with an LPC1124   P3.4

 

but when i'm initializing, i alway end up int HardFault_handler 

I have no idea what is wrong ?

 

/* Initialize GPIO */
 Chip_GPIO_Init(LPC_GPIO);

 Chip_GPIO_SetPinDIR(LPC_GPIO, 3, 4, true); // WHEN I DO THIS I END UP in HardFault Handler.... why is this ?

 

The same thing works for the LPC 11U37

 

 

If i try the same thing even with the blinky project i have the same error while debugging...

Outcomes