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

Flashing custom nRF52 (Bootloader, SoftDevice, Application)

Good morning,

Is it always required to use Segger J-Link in order to flash Bootloader, Softdevice and Application to a new device?

Could you summarize the different possibilities we have to flash any of these parts?

Furthermore, and regarding the nRF52840: is it possible to use the USB port to flash the device?

Best regards.

Parents
  • you need J-Link to flash bootloader. The Softdevice and the application can be flashed OTA

  • As mentioned, you need to program the chip with a bootloader first in order to enable FW update over USB,etc. Different options for programming the chips in production are summarized in this guide: http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.gs/dita/gs/prod_test_prog.html?cp=1_0_6  

  • Dani said:
    In fact, according the code I have specified above, this function was already returning true

    When is the m_ready_for_reset flag set?

  • I have this function as depiced in the following picture:

    And the result in what regards time is the same...

  • Please comment out the code used to disable the Softdevice and stop the app timer. Also, do you have debug logging enabled in your app to see if the shutdown handler gets called right away?

  • I get same results with function as in the following picture...

    I was not in debugging mode: I will try it....

  • I have some more info: I have taken again the Smartphone and I have used nRFToolbox instead of nRFConnect, and DFU is also working. When selecting DFU, I select my device and then the zip file. Then, I push 'Upload', and file uploading starts after a few seconds (around 30"). During this seconds, the messages shown at the bottom are the following ones:

    - Starting DFU --> Starting Bootloader --> Connecting --> Starting DFU --> File Uploading (upload percentage is shown).

    So, what I have such differences depending on the tool I use to carry out DFU process?

    All the best,

    Dani.

Reply
  • I have some more info: I have taken again the Smartphone and I have used nRFToolbox instead of nRFConnect, and DFU is also working. When selecting DFU, I select my device and then the zip file. Then, I push 'Upload', and file uploading starts after a few seconds (around 30"). During this seconds, the messages shown at the bottom are the following ones:

    - Starting DFU --> Starting Bootloader --> Connecting --> Starting DFU --> File Uploading (upload percentage is shown).

    So, what I have such differences depending on the tool I use to carry out DFU process?

    All the best,

    Dani.

Children
No Data