where will function ble_evt_handler be called from?
How does event handling work exactly?
where will function ble_evt_handler be called from?
How does event handling work exactly?
Hi,
You can use the softdevice handler library:
http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/lib_softdevice_handler.html?cp=4_0_0_3_44
Also I recommend to check out the S132 softdevice specifications if you haven't already:
http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.sds/dita/softdevices/s130/s130sds.html?cp=2_3_1_0
Best regards,
Kenneth
Dear Kenneth,
Thank you for a reply.
When I compiled code using gcc , I can see the broadcasting packets and can communicate with the device.
However, when I compile code using keil, I can not see broadcasting packets.
Can you please let me know how to debug this issue?
Best Regards,
PAJ
Hi,
Maybe the getting started can help?
http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.gs/dita/gs/sw_development.html?cp=1_1
And from SDK:
http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.0.0/nrf51_getting_started.html
Best regards,
Kenneth
Dear Kenneth,
The links you provided are very useful for clearing basics and it helped a lot.
However, Let say if we want to say if we want to check if BLE is advertising or not?
How can we check it? Where can we put debug point?
Best Regards,
PAJ
Hi,
Due to the real time requirements of the BLE softdevice stack, it is not possible to debug by breakpoints in code. Instead you will have to setup a central device (e.g. phone) to for instance receive or connect to the peripheral device you are developing. You can also use the UART to for instance output debug information in real time from the peripheral device.
Best regards,
Kenneth
Hi,
To give more insight on my problem, I am afraid I can do it.
At present, I am unable to come out of below while loop loop becuase of some reason,
while (nrf_fstorage_is_busy(&my_instance)) {
printf("in while loop");
sd_app_evt_wait();
}
I understand sd_app_ent_wait is the function which needs to give the signal from somewhere?
Am I correct? May I please know how to debug it.
Hi,
To give more insight on my problem, I am afraid I can do it.
At present, I am unable to come out of below while loop loop becuase of some reason,
while (nrf_fstorage_is_busy(&my_instance)) {
printf("in while loop");
sd_app_evt_wait();
}
I understand sd_app_ent_wait is the function which needs to give the signal from somewhere?
Am I correct? May I please know how to debug it.