hardfault connection parameter update

Jan Roorda gravatar image

asked 2017-03-20 14:57:21 +0100

updated 2017-03-20 14:57:54 +0100


My NRF52832 runs into the hardfault handler when the sd_ble_gap_conn_param_update() function is called.

I copied the BLE code from the ble_app_template_pca10 project. When I run the code in that project there is no problem, but now the code is copied to my own project the device runs into the hardfault handler.

What are possible reasons for the hardfault to occur in that function?

Thanks, JR

edit retag flag offensive close delete report spam


2 answers

Sort by » oldest newest most voted
Kristin gravatar image

answered 2017-03-21 11:41:04 +0100

updated 2017-03-21 12:28:08 +0100

Okay, I see. Is there anything in your app that is running on higher interrupt priority than the BLE events, do you have anything in your app that is running on the priority APP_IRQ_PRIORITY_HIGH? If so, could you change it to APP_IRQ_PRIORITY_LOW or APP_IRQ_PRIORITY_LOWEST?

edit flag offensive delete publish link more
Kristin gravatar image

answered 2017-03-21 11:01:11 +0100

Which error code does sd_ble_gap_conn_param_update() return?

edit flag offensive delete publish link more


It does not return an error code, the MCU runs into a hardfault in the sd_ble_gap_conn_param_update() function. It never returns from that function...

jroorda ( 2017-03-21 11:06:28 +0100 )editconvert to answer

I have nothing in my app running on APP_IRP_PRIORITY_HIGH. All the peripherals are configured at IRQ_PRIORITY 7 in sdk_config.h

jroorda ( 2017-03-21 12:06:41 +0100 )editconvert to answer

Nevermind, I figured out that I accidently set the app_timer IRQ priority to HIGHEST! Now I changed it back to LOW it does not hardfault anymore. Thanks for pointing in the right direction! This case can be labeled as resolved.

jroorda ( 2017-03-21 12:15:13 +0100 )editconvert to answer

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

Question Tools

1 follower


Asked: 2017-03-20 14:57:21 +0100

Seen: 67 times

Last updated: mars 21 '17