LPC1124 HARDFAULT WHILE INITIALISING A PIN AS OUTPUT

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC1124 HARDFAULT WHILE INITIALISING A PIN AS OUTPUT

771 Views
pascalcarreweyn
Contributor II

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...

Labels (1)
0 Kudos
Reply
3 Replies

671 Views
jeremyzhou
NXP Employee
NXP Employee

Hi pascal carreweyn

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
To provide the fastest possible support, I'd highly recommend you to use the demo in the LPC1125's LPCOpen library.

LPCOpen Software for LPC11XX | NXP 

pastedImage_1.png
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

671 Views
pascalcarreweyn
Contributor II

Hi Jeremy,

Thanks for the help but i already solved the problem.

It was a hardware problem with the debugging cable which gave me this strange effect...

Pascal

0 Kudos
Reply

671 Views
jeremyzhou
NXP Employee
NXP Employee

Hi pascal carreweyn,

Thanks for your reply.
Goad to hear the issue had been solved.
If you have any further questions about it, please feel free to contact me.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply