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

nRF51 DK - BLE Beacon Example

I just bought the nRF51 DK and trying to follow the Beacon Transmitter Sample Application Example.

I would have 2 questions:

1 - At one point it says "Define the compiler define USE_UICR_FOR_MAJ_MIN_VALUES". Do I simply need to add

#define USE_UICR_FOR_MAJ_MIN_VALUES

at the top of main.c or is there a better define it during compilation?

2 - When running nrfjprog tool ("C:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin\nrfjprog.exe"), the nrfjprog window opens and closes very quickly. Any idea what might cause that?

Parents
  • Hi,

    • In Keil click Project->Options for target, you will get a menu like this, add the define where it says add define here

    image description

    • nrfjprog is a command line tool. Start the windows command line and use nrfjprog like this:

    nrfjprog -f NRF51 --eraseall

    Erase all contents of a NRF51 family device

    nrfjprog -f NRF51 --program <hex_file>

    Hex_file can be a SoftDevice, application or bootloader. This will program it for you.

    Best regards,

    Øyvind

Reply
  • Hi,

    • In Keil click Project->Options for target, you will get a menu like this, add the define where it says add define here

    image description

    • nrfjprog is a command line tool. Start the windows command line and use nrfjprog like this:

    nrfjprog -f NRF51 --eraseall

    Erase all contents of a NRF51 family device

    nrfjprog -f NRF51 --program <hex_file>

    Hex_file can be a SoftDevice, application or bootloader. This will program it for you.

    Best regards,

    Øyvind

Children
Related