Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 1 month ago.
Errors trying to build nRF51822 BLE sample app
I'm trying to build a simple 'hello world' app using the BLE_API and nRF51822 libraries. I'm following this guide https://evothings.com/how-to-turn-a-nordic-semiconductor-nrf51-dk-into-a-discoverable-beacon-using-mbed/, but I'm getting a bunch of build errors (see below). I asked about this on the Nordic forum (https://devzone.nordicsemi.com/question/92545/nrf51-ble-examples-on-mbedorg-will-not-compile/) and someone suggested asking here.
My workspace is very simple:
It just takes a couple of minutes to duplicate this error... can someone from mbed help?
- Jay
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...
Someone on the nordicsemi forums helped me out and it turns out this builds ok if I select the nRF51822 platform instead of the nRF51-DK. The nRF51-DK uses the nRF51422, but there is no nRF51422 library available on mbed.org (I think the nRF51822 lib is supposed to support both devices). This seems like some internal problem with mbed.org that they need to fix.
posted by Jay K 03 Sep 2016We're having some issues currently with the combination of latest mbed / latest nRF51822 and latest BLE_API. Reported here https://github.com/ARMmbed/mbed-os/issues/2621. Workaround: take any of the nRF51-DK examples -> Import -> Do *not* update libraries. Will compile.
posted by Jan Jongboom 05 Sep 2016