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

Problem reprogramming the sparkfun nRF52832 dev board

Hi, 

I am using a Sparkfun nRF52832 dev board and SES with the Jlink mini to program it.Our project involved the ability to use the micro as a keyboard so I am playing with the ble_app_hids_keyboard example.

I was able to get the example running on the dev board and all the functionalities worked just fine. However then when I tried to reprogram it with the same program and same steps( connect Jlink -> erase all -> debug go), SES tells me it programmed successfully but the keyboard part stopped working. The nRF52832 is still able to connect to my laptop through Bluetooth, but when I push the button nothing happened. This same situation has happened to twSparkfunun nRF52832 dev board that I have and I have no clue what is going on.

Thank you guys,

qchang

Parents
  • I tried to reproduce the error you got. I downloaded the ble_app_hids_keyboard example onto the chip, connected the device to the computer. Then I reprogrammed the chip, and without removing the device I connected it to the computer once again.

    Then the same happened as in your case, it connected and disconnected, in the following manner:

     

    <info> app: Fast advertising.
    <info> app: Disconnected
    <info> app: Connected
    <info> peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Encryption, error: 4102
    <info> app: Fast advertising.
    <info> app: Disconnected
    <info> app: Connected
    <info> peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Encryption, error: 4102
    .
    .
    .

    If you are getting the same error (4102), according to this link, the error occurs because the bonding info is removed from the chip, but not the client side, and can be solved by removing the device from the laptop. This fixed the problem for me.

    But it seems like this didn't solve the issue for you. Could you try to debug the chip and post any error messages you got?

    Best regards, Simon

Reply
  • I tried to reproduce the error you got. I downloaded the ble_app_hids_keyboard example onto the chip, connected the device to the computer. Then I reprogrammed the chip, and without removing the device I connected it to the computer once again.

    Then the same happened as in your case, it connected and disconnected, in the following manner:

     

    <info> app: Fast advertising.
    <info> app: Disconnected
    <info> app: Connected
    <info> peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Encryption, error: 4102
    <info> app: Fast advertising.
    <info> app: Disconnected
    <info> app: Connected
    <info> peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Encryption, error: 4102
    .
    .
    .

    If you are getting the same error (4102), according to this link, the error occurs because the bonding info is removed from the chip, but not the client side, and can be solved by removing the device from the laptop. This fixed the problem for me.

    But it seems like this didn't solve the issue for you. Could you try to debug the chip and post any error messages you got?

    Best regards, Simon

Children
Related