Hi, Can I debug BLE program? for example ble_app_hrs and ble_app_proximity. If not, why and how can I test and evaluate my BLE proram ?
Best Regards
Hi, Can I debug BLE program? for example ble_app_hrs and ble_app_proximity. If not, why and how can I test and evaluate my BLE proram ?
Best Regards
Add the following line in you code just before breakpoint:
__ASM volatile ("MSR primask, %0" : : "r" (0x1) : "memory");
This will set PRIMASK register. You will be able to step debuger until you hit one of the sd_ calls.
Add the following line in you code just before breakpoint:
__ASM volatile ("MSR primask, %0" : : "r" (0x1) : "memory");
This will set PRIMASK register. You will be able to step debuger until you hit one of the sd_ calls.
Works like a charm! Thank you.
So one will need to modify their source at any location where a breakpoint is needed? yikes! So what is the best tool chain for Nordic that works well? Where is the information for how to get started debugging (like setup and to breakpoint)? I am presently seeking a flexible easy to toolchain for bluetooth arm cortex development. Hoping I can do it with Nordic as the target, but if the evaluation dk toolchain is too much a maze of issues with nordic I will be seeking another supplier. Does amaze me how companies will spend a fortune and then not do and give a series of proven steps to use (develop) with their product.