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

NRF51822 connect to PC then disconnect to link with other PC.

Hi,

Just like the topic description.

The sample code I used is ble_app_hids_keyboard (V11 S130) and the development board is PCA10028.

I found after I load the code I can connect with the first PC and the function is worked.

When I disconnect the board, it just cannot connect with the second PC and the second PC cannot scan the board.

Thus I just erase the program and load the code again, it just can connect with the PC but still cannot connect with the second one.

Have anyone meet the same problem, could someone help to deal with it?

kind regards,

Wedy

  • Hi,

    Yes, if you use the trial version of the Keil IDE then there is a limit on code size of 32 kb.

    What is the error that you get from nRFgo Studio? Alternatively you can use the command line tool "nrfjprog" to program the board.

    nrfjprog --eraseall
    nrfjprog --program hexfile.hex
    nrfjprog --reset

    Where hexfile.hex is the hexfile that you want to program. If you also need the SoftDevice then you can program that one before the call to reset the board.

    Removing parts of the example is not recommended, as that may lead to undefined behavior. If you remove BLE services then you must take care to remove all the related code and settings.

    I do not recommend adding peer manager to SDK 11, if you have the option to use SDK 12 instead. Also, modifying the SDK 11 example to use peer manager is likely to make the project bigger, so that you get the same size limitation issue as with the SDK 12 example.

    Regards,
    Terje

Related