This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problems flashing the DFU on the Eval Kit

I am using the GCC DFU project provided by Nordic on GitHub (devzone.nordicsemi.com/.../)

I altered the main.c to trigger to DFU mode based on the contents of the GPREGRET register rather than Button 7. However when I try and Flash the .hex file (bootloader_gcc_xxaa.hex) of the project on nRFgo Studio I get the follow error. The hex file has data in SoftDevice region. Try programming using "Program SoftDevice", or erase all before programming.

Can I (,how can i) alter this project to not reside in the SoftDevice region or do I have to fully integrate it with the SoftDevice (7.0.0) .hex?

Thank you for your help.

P.S. I am using rRFgo Studio 1.17.1 to flash

nrf51_bootloader_gcc-master.zip

Parents Reply
  • I am suspecting the same as you. My bootloader_util_gcc.c has the attributes matching the linker file:

    uint8_t m_boot_settings[CODE_PAGE_SIZE] attribute((section (".bootloader_settings_sect"))) attribute((used));

    uint32_t m_uicr_bootloader_start_address attribute((section (".NRF_UICR_BOOT_START_SECT"))) = BOOTLOADER_REGION_START;

    in dfu_types.h

    #define BOOTLOADER_REGION_START         0x0003C000
    
Children
No Data
Related