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

  • Hi Simon,

    Thank you so much for the help. I was able to connect the micro back to my macbook again after I deleted the Nordic Keyboard from the bluetooth plist and restart my macbook. However the connection between the nRF52832 and my macbook is very unstable. When I power on the dev board it automatically connected with my macbook but after I press the button a couple of times(usually 2 to 4 times) it disconnected itself with macbook; sometimes it will connect back to macbook by itself and sometimes I will need to reboot the dev board before it connects to macbook again. 

    I will get back to Lab and tried to print out the error message. I am new to both SES and nRF chips so sorry for not providing and debugging message in the original post. 

    Thanks again for the help.

  • I am happy to help. I am not sure why it disconnects, but if you provide the debug log I might get some more insight. 

  • I am happy to help. I am not sure why it disconnects, but if you provide the debug log I might be able to get some more insight.

Reply Children
No Data
Related