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

Cannot program nRF52840DK by copying hex file

I am not able to program the nRF52840DK by copying over the .hex file generated by my project to the JLINK drive. However I am able to successfully program using Segger directly from within the IDE. 

Do I need to enable something in the code or the tool in order to create a .hex file that will program the nRF52840 using the copy method.

Parents
  • Hi, 

    For nRF Connect Bluetooth Low Energy App, I would recommend using the connectivity .hex that the app prompts you to flash:

    Here is the .hex the current version of BLE app will prompt you to flash for the nRF52840-DK:

    connectivity_1.2.3_1m_with_s132_3.1.hex

    And then you use the J2 USB connector on the short side of the DK.

    Best regards,

    Amanda

  • Hi - I'm not clear how to use the .hex file attached. Maybe I can illustrate with an example. If I go to examples\ble_peripheral\ble_app_blinky\hex and copy ble_app_blinky_pca10056_s140.hex (pre-compiled hex) that to the JLINK drive, the DK gets programmed and the one LED lights. If I open the project and build the hex using Segger and program from within the IDE it also works fine. However if I copy the generated hex file from the Segger project to the JLINK drive - located in examples\ble_peripheral\ble_app_blinky\pca10056\s140\ses\Output\Release\Exe - the LED remains off and the DK does not appear to program. Is there something in the configuration which enables the generated hex file to program the DK via USB using file copy?

Reply
  • Hi - I'm not clear how to use the .hex file attached. Maybe I can illustrate with an example. If I go to examples\ble_peripheral\ble_app_blinky\hex and copy ble_app_blinky_pca10056_s140.hex (pre-compiled hex) that to the JLINK drive, the DK gets programmed and the one LED lights. If I open the project and build the hex using Segger and program from within the IDE it also works fine. However if I copy the generated hex file from the Segger project to the JLINK drive - located in examples\ble_peripheral\ble_app_blinky\pca10056\s140\ses\Output\Release\Exe - the LED remains off and the DK does not appear to program. Is there something in the configuration which enables the generated hex file to program the DK via USB using file copy?

Children
Related