This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nrf51822-sd_nvic_EnableIRQ(GPIOTE_IRQn)-HardFault_Handler

Thank you for your reply,Nikita

description of my system: Hardware:nrf51822,pca10001 Software:sdk5.20,run the softdevice s120

According to your reminder.i reference the samples in sdk5.20. i find two locations.

one is in ble_app_hrs,another is in ble_app_proximity .the same point is that sd_nvic_SetPriority()/sd_nvic_EnableIRQ() will be called in a app_timer(timers_init),which is prior to ble_stack_init();so i also put the sd_nvic_EnableIRQ(GPIOTE) before ble_stack_init(). then the hardfault not orrur,but if push the button ,the problem GPIOTE_IRQHandler neither will be into.

Related