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

How to port nRF51822 development kit examples to the nRF51822 evaluation kit

How can I port nRF51822 SDK examples made for the development kit (in the NRF6310 folder) to the nRF51822 evaluation kit?

Parents
  • The difference between the nRF51822 development kit and nRF51822 evaluation kit is explained on this thread.

    The different examples in the nRF51 SDK are either ported for the evaluation kit or the development kit. However, there is basically almost no difference between the examples for the evaluation kit and the development kit. The main difference is the mapping of LEDs and Buttons on the two kits. The LEDs and Buttons map to different GPIO pins on the two kits. Additionally, the evaluation kit has two LEDs and two buttons, while the development kit has 8 LEDs and 8 buttons.

    To make the development kit examples (in the NRF6310 folder in the SDK) compatible with the PCA10001 evaluation kit, replace the BOARD_NRF6310 constant with BOARD_PCA10001 constant in the compiler defines in KEIL, see picture below. That will remap LEDs and buttons to the evaluation kit (PCA10001). This will however only map LED_0, LED_1, BUTTON_0 and BUTTON_1 to the evaluation board, since it only has two leds and two buttons. If the example for the development kit (NRF6310) is using more than two leds and/or two buttons, then you will get a compile error when compiling for the evaluation board. You must then manually comment out all usage of leds and buttons in the example that are not LED_0, LED_1, BUTTON_0 or BUTTON_1.

    image description

Reply
  • The difference between the nRF51822 development kit and nRF51822 evaluation kit is explained on this thread.

    The different examples in the nRF51 SDK are either ported for the evaluation kit or the development kit. However, there is basically almost no difference between the examples for the evaluation kit and the development kit. The main difference is the mapping of LEDs and Buttons on the two kits. The LEDs and Buttons map to different GPIO pins on the two kits. Additionally, the evaluation kit has two LEDs and two buttons, while the development kit has 8 LEDs and 8 buttons.

    To make the development kit examples (in the NRF6310 folder in the SDK) compatible with the PCA10001 evaluation kit, replace the BOARD_NRF6310 constant with BOARD_PCA10001 constant in the compiler defines in KEIL, see picture below. That will remap LEDs and buttons to the evaluation kit (PCA10001). This will however only map LED_0, LED_1, BUTTON_0 and BUTTON_1 to the evaluation board, since it only has two leds and two buttons. If the example for the development kit (NRF6310) is using more than two leds and/or two buttons, then you will get a compile error when compiling for the evaluation board. You must then manually comment out all usage of leds and buttons in the example that are not LED_0, LED_1, BUTTON_0 or BUTTON_1.

    image description

Children
Related