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

Issues programming my nRF51822 for the first time

Hello All,

I'm trying to program a NRF51822 module for the first time.Using Keil, Soft device s110_nrf51_8.0.0,soft device kit nRF51_SDK_9.0.0_2e23562 when I try to program  I get an success  message  but no blinking of the LED

Please see below. Any clues?

Parents
  • Hi Barus,

    (I cannot see any attachment)

     

    First off, I would recommend you to use the latest SDK version for the nRF51 series, which is SDK v12.3.

    It sounds that you only flashed the Softdevice (BLE stack) and not the application?

    What example application did you try to flash?  Also, could you describe what this success message say? 

     

    Check this tutorial on how to flash a regular example. (for example blinky example)

    Check this tutorial on how to flash an example with the Softdevice. (for example the BLE uart)

  • Desktop.rar

    thank you for your answer

    but with this steps and no blink !!?

  • Hi Barus,

    First open "command prompt" and type: nrfjprog -e to wipe out whats on the flash on your device. (you have to have nRF5x Command Line Tools installed)

    1. Download SDK v12.3.

    2. Then open the Keil blinky project -> [nRF5_SDK_12.3.0\examples\peripheral\blinky\pca10028\blank\arm5_no_packs]

    3. Then Build and Flash through Keil.

     

  • Thank you for your answer

    but i am using nrf 51822 beacon semiconductor 400059 so i can t load the flash with keil so  i am Build

    with Keil and Flash with nrfgo studio,I get an success  message  but no blinking of the LED

  • i find the solution and i want to share it

    #include "nrf.h"
    #include "nrf_gpio.h"
    #include "nrf_delay.h"
    
    #define LED1_PIN 17
    
    int main (void)
    {
       nrf_gpio_cfg_output(LED1_PIN);
       nrf_gpio_pin_clear(LED1_PIN);
       while(1)
       {
           nrf_gpio_pin_toggle(LED1_PIN);
           nrf_delay_ms(1000);
       }
    }
Reply
  • i find the solution and i want to share it

    #include "nrf.h"
    #include "nrf_gpio.h"
    #include "nrf_delay.h"
    
    #define LED1_PIN 17
    
    int main (void)
    {
       nrf_gpio_cfg_output(LED1_PIN);
       nrf_gpio_pin_clear(LED1_PIN);
       while(1)
       {
           nrf_gpio_pin_toggle(LED1_PIN);
           nrf_delay_ms(1000);
       }
    }
Children
No Data