I work with gcc on nordic nrf52 SDK13.0.0. I see the post: devzone.nordicsemi.com/.../
But if I try to change the packet in the radio_event_handler in active state, with ble_advdata_set(), I got a HardFault_Handler() interrupt.
Why?
I work with gcc on nordic nrf52 SDK13.0.0. I see the post: devzone.nordicsemi.com/.../
But if I try to change the packet in the radio_event_handler in active state, with ble_advdata_set(), I got a HardFault_Handler() interrupt.
Why?
Hi,
What irq_priority
and distance
did you use in ble_radio_notification_init()
?
Are you able to debug, and see how the call stack looks like when you enter the HardFault_Handler ?
Hi Sigurd, i use irq_priority 3 and distance 1740US. And i think i see my fault, irq_priority 3 is higher priority than Softdevice API calls. So i change it to 7 and it works.
Thanks for your tip. Thomas
Hi, the Stack is:
but my problem is sloved. I change the irq_priority to 7, thats it. Thanks.
Good to hear that the problem is solved :)