LPC1124 HARDFAULT WHILE INITIALISING A PIN AS OUTPUT

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPC1124 HARDFAULT WHILE INITIALISING A PIN AS OUTPUT

884件の閲覧回数
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...

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

784件の閲覧回数
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.
-------------------------------------------------------------------------------

784件の閲覧回数
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 件の賞賛
返信

784件の閲覧回数
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 件の賞賛
返信