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.
10 years, 5 months ago.
mbed compiler for nRF51822 Bluetooth Smart Beacon Kit
We have been using nRF51822-mKIT for code development and recently received nRF51822 Bluetooth Smart Beacon Kit. There is desire to use nRF51822 Bluetooth Smart Beacon Kit for testing because of the smaller size.
When we looked at the "blinky" app on mbed, one difference between the two platforms became obvious. On nRF51822-mKIT, LED1 and LED2 are connected to GPIO P0.18 and P0.19, respectively. On the other hand, nRF51822 Bluetooth Smart Beacon Kit has a 3-color LED which is connected to GPIOs P0.12, P0.16, and P0.17.
So, right there we see incompatibility and that made us wonder if one should even try to use mbed to compile code for nRF51822 Bluetooth Smart Beacon Kit.
Question relating to:
1 Answer
10 years, 5 months ago.
You have the option to switch to using the mbed-src library (instead of mbed) in your project; and then either remap the pin-names for LEDs by editing http://mbed.org/users/mbed_official/code/mbed-src/file/7618f037e2de/targets/hal/TARGET_NORDIC/TARGET_NRF51822/TARGET_NRF51822_MKIT/PinNames.h or create your own HAL target (alongside TARGET_NRF51822_MKIT) and contribute it back to mbed.org. :)
Note: I've used a URL to identify the PinNames.h file; but you'll be changing the corresponding file in your project.