Download the bootloader zip file for nRF52840

I would like to prepare my RAK4631 supported board file to Zephyr, but I am having problems with my JLink device, then I bought a new device but it didn´t arrive yet.

As a alternative, I would like to work with the nrfutil like this RAK example, via USB port: “nrfutil.exe dfu serial -pkg rak4631_factory_bootloader.zip -p COM5”.

Where I can find a updated zip bootloader file for Zephyr?  Today I am working with VSCode and nRF Connect for VSCode.

Regards,

Claudio

Parents
  • Bootloader won't solve the chicken-and-egg problem that you still need an SWD debugger (JLink, DK board) in order to flash it in the first place.

    USB update only works when there was a bootloader already installed from the factory.

  • In the RAKWireless environment, my normal procedures to recover or re-install the Arduino BSP environment, it is using "nrfutil" utility with "dfu" and "serial", and it works without problems.

    The procedure with RAK4631 is:

    1. RAK4631(nRF52840+Semtech LoRa SX1262) is working with Arduino BSP, then I do the Softdevice flash 
    2. First, using USB port from RAK19007 mother board, I do the bootloader with the nrfutil: “nrfutil.exe dfu serial -pkg rak4631_factory_bootloader.zip -p COM5”.wouldn´t work for MCUBoot+Zephyr.
    3. After I flash the Softdevice: "adafruit-nrfutil --verbose dfu serial --package rak4631_factory_softdevice.zip -p COM15"

    Could you help to understand why the procedure above wouldn´t work for MCUBoot + Zephyr?

     

    Regards,

    Claudio

     

  • Hi Claudio,

    Have you configured the start address of your zephyr app with CONFIG_FLASH_LOAD_OFFSET so it doesn't overlap with the bootloader or MBR starting at address 0x0? MCuboot is not required if you can use the pre-programmed bootloader. 

Reply Children
  • I think that you got the point, I didn´t configure.  I am still learning the Zephyr environment and I am doing Nordic nRF Connect SDK Fundamentals and nRF Connect SDK Intermediate at same time to try to speed up the learning curve :-)

    My RAK4631(nRF52840+Semtech LoRa SX1262) comes with RAKWireless bootloader and a Softdevice for Arduino BSP.

     

    I didn´t find any documentation about how to convert the RAK4631 in a device ready to run Zephyr.

    I am supposing that I would need to replace the RAKWireless bootloader by the MCUBoot to be compatibel with Zephyr

    First I already try just to flash Zephyr application using the VSCode/nRF Connect SDK, but I was receive a error message talking about a protection against write operations in the flash area.

    Well, I am needing to help about what is the best path to convert my RAK4631 MCUs......

    Could you help me?

    Regards,

    Claudio

  • Hi Claudio,

    I’m not familiar with the bootloader that comes pre-programmed on this board, but in general, it should not be an issue to run a Zephyr application alongside another bootloader. You can use the CONFIG_FLASH_LOAD_OFFSET to change the application start address so it doesn't overlap with the bootloader.

    Claudio Rosa said:
    First I already try just to flash Zephyr application using the VSCode/nRF Connect SDK, but I was receive a error message talking about a protection against write operations in the flash area.

    You can disable the reaback protection by running "nrfjprog --recover" from the command line. Have you tried that?

    Best regards,

    Vidar

  • Vidar,

    I found the problem:  it was a bad contact in the SWDCLK cable between the nRF52840 and J-Link

    Thank you by your support.

    Have a nice week

    Regards,

    Clauido

Related