running lpc82x periph_adc example getting HardFault_Handler everytime.

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

running lpc82x periph_adc example getting HardFault_Handler everytime.

ソリューションへジャンプ
936件の閲覧回数
chestertai
Contributor I

I am using LPC82x xpresso v2/mbed development board and running the periph_adc example.  After enable ADC sequencer

Chip_ADC_EnableSequencer(LPC_ADC, ADC_SEQA_IDX);

The program will jump to HardFault_Handler.  Anyone seen this happeded?

0 件の賞賛
返信
1 解決策
827件の閲覧回数
victorjimenez
NXP TechSupport
NXP TechSupport

  Hello Chester! 

As I mentioned in the case, the problem is in the file cr_startup_lpc82x.c since it lacks some interrupt handler. The example of the ADC provided in the code bundle works fine. If you compare the file mentioned before with the same one but of the code bundle you will see the differences, as shown below. 

pastedImage_2.png

Please replace all the lines in the cr_startup_lpc82x.c file of the LPCOpen 3_02 to match the one of the code bundle. Once you make these changes the demo should work as expected. 

Hope it helps!

Victor.

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

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
828件の閲覧回数
victorjimenez
NXP TechSupport
NXP TechSupport

  Hello Chester! 

As I mentioned in the case, the problem is in the file cr_startup_lpc82x.c since it lacks some interrupt handler. The example of the ADC provided in the code bundle works fine. If you compare the file mentioned before with the same one but of the code bundle you will see the differences, as shown below. 

pastedImage_2.png

Please replace all the lines in the cr_startup_lpc82x.c file of the LPCOpen 3_02 to match the one of the code bundle. Once you make these changes the demo should work as expected. 

Hope it helps!

Victor.

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

0 件の賞賛
返信