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

nRFgo Studio ERROR "This hex file has data in Softdevice region"

Hi,

  • We are developing a Bluetooth 2d-3d mouse with OTA -DFU service.
  • The controller we are using NRF52832  QFABB0 it contain 32KB RAM and 256KB of flash memory.
  • SDK we are using is "nRF5_SDK_15.3.0_59ac345" .
  • To work an OTA-DFU application successfully ,we need to flash SOFTDEVICE ,BOOTLOADER AND APPLICATION into the nrf52832.
  • SOFTDEVICE :- "s132_nrf52_6.1.1_softdevice"
  • BOOTLOADER :-(....\nRF5_SDK_15.3.0_59ac345\examples\dfu\secure_bootloader\) some modification done in this ,we made it buttonless and the led pins was changed according to our custom board .
  • APPLICATION :- (.....\nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\ble_app_hids_mouse) we modified these code with our needs.

ISSUES 

  • I TRIED TO FLASH THE SOFTDEVICE WITH "nRFgo Studio" AND ITS FLASHED SUCESSFULLY. THEN I TRIED TO FLASH THE BOOTLOADER WITH "nRFgo Studio" BUT ITS SHOWING SOME ERROR LOOK THE SCREEN SHORT.

NOTE:- when i flashed the BOOTLOADER  directly from the SEGGER IDE  its  flashing successfully  and its also advertising as "DfuTrag" and the OTA - firware update is taking place successfully too. 

DOUBTS

  1. Why these issues  happening in "nRFgo Studio"?
  2. how can we solve these issue?

note :-I also tried the solutions in error command box in the screen short but then also the bootloader code is not working .

PLEASE ANSWER TO 1 AND 2.

Parents
  • Hi Nandhu

    You don't need to make any changes in the section placement macro in SES, sorry about the confusion. It seems like the bootloader_settings file is still starting at 0x7E000, so you'll have to fit it in the 256kB flash.

    You can do this by changing the placement of your bootloader settings using nrfutil. nrfutil is part of the nRF Command Line tools that can be downloaded here. Please download this and try the following command in your command line:

    nrfutil settings generate --family NRF52 --application ble_app_hids_mouse_pca10040_s132.hex --application-version 1 --bootloader-version 1 --bl-settings-version 2 --start-address 0x0003F000 bootloader_setting15.hex

    Best regards,

    Simon

  • It seems like the bootloader_settings file is still starting at 0x7E000, so you'll have to fit it in the 256kB flash.

     But i changed the  bootloader_settings_page (r) : ORIGIN to 0x3F000.  in LD file.

    You can do this by changing the placement of your bootloader settings using nrfutil

    Which command is used for these. i will to it with command prompt.

    ONE MAJOR ISSUE 

    I told you that when flashing the softdevice and bootloader to nrf52832 its advertising and OTA _DFU is working.

    After i made the bootloader buttonless its advertising but the OTA _DFU is not taking  place . look the screen shot.

    • CHANGES IN BOOTLOADER CODE.

    #define NRF_BL_DFU_ENTER_METHOD_BUTTON 0 

    #define NRF_BL_DFU_ENTER_METHOD_BUTTONLESS 1    IN sdk_config.h  file.

    EDITED PART BELOW

    SIMON THE OTA-DFU is not takeing place without these change too.I don,t known why . same error is showing .

    • ERROR SHOWING WHILE OTA _DFU

Reply
  • It seems like the bootloader_settings file is still starting at 0x7E000, so you'll have to fit it in the 256kB flash.

     But i changed the  bootloader_settings_page (r) : ORIGIN to 0x3F000.  in LD file.

    You can do this by changing the placement of your bootloader settings using nrfutil

    Which command is used for these. i will to it with command prompt.

    ONE MAJOR ISSUE 

    I told you that when flashing the softdevice and bootloader to nrf52832 its advertising and OTA _DFU is working.

    After i made the bootloader buttonless its advertising but the OTA _DFU is not taking  place . look the screen shot.

    • CHANGES IN BOOTLOADER CODE.

    #define NRF_BL_DFU_ENTER_METHOD_BUTTON 0 

    #define NRF_BL_DFU_ENTER_METHOD_BUTTONLESS 1    IN sdk_config.h  file.

    EDITED PART BELOW

    SIMON THE OTA-DFU is not takeing place without these change too.I don,t known why . same error is showing .

    • ERROR SHOWING WHILE OTA _DFU

Children
  • HI SIMON 

    You don't need to make any changes in the section placement macro in SES, sorry about the confusion

    I want to inform one thing if we don't change the FLASH START and FLASH SIZEin the section placement macro in SES, (I.E the same change in LD file) this error will show while flashing.

    If we changed it bootloder and softdevice will flash and advertise but OTA_DFU will not take place and these error will show.

    why these OTA-DFU issue is showing?

    JUST leave the bootlader setting issue now we will go through it later . First we want to solve these issue.

    If you need our BOOTLOADER sdk zip file i will send it to you? 

Related