This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF51 BLE examples on mbed.org will not compile

I'm trying to get going on an nRF51 project using the compiler on mbed.org, but if I create a new project using the nRF51 DK and use any of the example BLE apps as templates I get multiple compiler errors:

Error: Identifier "nrf_app_irq_priority_t" is undefined in "nRF51822/nrf51-sdk/source/nordic_sdk/components/ble/ble_radio_notification/ble_radio_notification.h", Line: 60, Col: 39
Error: Identifier "nrf_radio_notification_distance_t" is undefined in "nRF51822/nrf51-sdk/source/nordic_sdk/components/ble/ble_radio_notification/ble_radio_notification.h", Line: 61, Col: 39
Error: Identifier "nrf_app_irq_priority_t" is undefined in "nRF51822/nrf51-sdk/source/nordic_sdk/components/ble/ble_radio_notification/ble_radio_notification.c", Line: 51, Col: 39
Error: Identifier "nrf_radio_notification_distance_t" is undefined in "nRF51822/nrf51-sdk/source/nordic_sdk/components/ble/ble_radio_notification/ble_radio_notification.c", Line: 52, Col: 39
Warning: Function "sd_nvic_ClearPendingIRQ" declared implicitly in "nRF51822/nrf51-sdk/source/nordic_sdk/components/ble/ble_radio_notification/ble_radio_notification.c", Line: 60, Col: 17
Warning: Function "sd_nvic_SetPriority" declared implicitly in "nRF51822/nrf51-sdk/source/nordic_sdk/components/ble/ble_radio_notification/ble_radio_notification.c", Line: 66, Col: 17
Warning: Function "sd_nvic_EnableIRQ" declared implicitly in "nRF51822/nrf51-sdk/source/nordic_sdk/components/ble/ble_radio_notification/ble_radio_notification.c", Line: 72, Col: 17
Info: Unable to download. Fix the reported errors...

I've tried messing with older versions of the DK and libs and I get the same errors no matter what I do. Is there a way to fix this, or is there a howto somewhere to get set up developing for this chip using a different IDE?

Parents
  • Strange. You seem to have the same issue as this guy. I'm not sure why you can't connect. If you use mbed you shouldn't flash the SoftDevice first, this should be included in the hex you download from the mbed compiler. You see the same behavior with the examples from the normal SDK? SDK 11.0.0? Do you have a nRF51 DK? PCA10028? Please try flashing the SoftDevice first, and then this hex. It still doesn't work? Could you try to connect with something else than a linux pc? Android or iOS smart phone?

Reply
  • Strange. You seem to have the same issue as this guy. I'm not sure why you can't connect. If you use mbed you shouldn't flash the SoftDevice first, this should be included in the hex you download from the mbed compiler. You see the same behavior with the examples from the normal SDK? SDK 11.0.0? Do you have a nRF51 DK? PCA10028? Please try flashing the SoftDevice first, and then this hex. It still doesn't work? Could you try to connect with something else than a linux pc? Android or iOS smart phone?

Children
No Data
Related