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

Unable to create bootloader for nRF52832

Hello,

I am creating a wearable PCB with the Raytac MDBT4Q-P BLE module, which uses the nRF52832. I need this device to have OTA firmware capability, but I'm finding it nearly impossible to create a simple bootloader. I'm following this guide for creating the bootloader. Unfortunately, I've been having all sorts of issues trying to set this up on Mac, Windows, or Linux operating systems. Before I do a deep dive into troubleshooting my issues, I need to ask; is there just a standard bootloader .hex file that I can download somewhere and flash to the board? The process for creating a simple bootloader is extremely convoluted and requires that multiple 3rd-party tools work perfectly.

Thank you,

Nick 

Parents Reply Children
  • No, the bootloader will write its start address to the MBR on boot and then following code line 

    #define BOOTLOADER_ADDRESS      ((*(uint32_t *)MBR_BOOTLOADER_ADDR) == 0xFFFFFFFF ? *MBR_UICR_BOOTLOADER_ADDR : *(uint32_t *)MBR_BOOTLOADER_ADDR) /**< The currently configured start address of the bootloader. If 0xFFFFFFFF, no bootloader start address is configured. */

    will retrieve the bootloader address by de-referencing the pointer to the memory address where the bootloader address is stored. 

    Best regards

    Bjørn

Related