Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

Selected Data Does not fit into the Selected flash sector.

Hi all !!!

I am trying to program the bootloader and softdevice using the J-Flash software, but I get this error, how can I fix it?

Board: PCA10056 (NRF52840)

SDK: 17.1

Example: secure_bootloader_ble_s140.

Notes:

  • The bootloader hex file and the softdevice hex file were merged before  trying programing.
  • the example compiles without errors using segger embedded studio.
Parents
  • Hi Carlos, 

    If you flash the bootloader directly from Segger Embedded Studio do you have the same problem ? 

    Have you tried to use nrfjprog.exe tool  ? 


    In JFlash if you flash the softdevice and then the bootloader separately do you see the issue ? 

    I am suspecting that it has something to do with the bootloader writing to UICR that caused the problem. So the bootloader binary has some hardcoded data for UICR (and in the MBR setting as well) to mark that the bootloader is flashed on the chip so that the MBR will jump to the bootloader. I'm not so familiar with JFlash tool, but you may have to configure the tool to allow flash writing to UICR area (address 0x10001000) 

  • Hi Hung!!!

    If you flash the bootloader directly from Segger Embedded Studio do you have the same problem ? 

    No, I do not have the same problem, but when I run the code, I can no see the advertising in the NRF connect  mobile app or on destkop app (I press the button 4 when start up the board).

    Have you tried to use nrfjprog.exe tool  ? 

    I will try :)

    In JFlash if you flash the softdevice and then the bootloader separately do you see the issue ? 

    Yes, I have exactly  the same problem :(

    I am suspecting that it has something to do with the bootloader writing to UICR that caused the problem. So the bootloader binary has some hardcoded data for UICR (and in the MBR setting as well) to mark that the bootloader is flashed on the chip so that the MBR will jump to the bootloader. I'm not so familiar with JFlash tool, but you may have to configure the tool to allow flash writing to UICR area (address 0x10001000)

    I will investigate more about the above :)

    are there other effective method to flash the bootloader and the softdevice? :)

    thanks!

Reply
  • Hi Hung!!!

    If you flash the bootloader directly from Segger Embedded Studio do you have the same problem ? 

    No, I do not have the same problem, but when I run the code, I can no see the advertising in the NRF connect  mobile app or on destkop app (I press the button 4 when start up the board).

    Have you tried to use nrfjprog.exe tool  ? 

    I will try :)

    In JFlash if you flash the softdevice and then the bootloader separately do you see the issue ? 

    Yes, I have exactly  the same problem :(

    I am suspecting that it has something to do with the bootloader writing to UICR that caused the problem. So the bootloader binary has some hardcoded data for UICR (and in the MBR setting as well) to mark that the bootloader is flashed on the chip so that the MBR will jump to the bootloader. I'm not so familiar with JFlash tool, but you may have to configure the tool to allow flash writing to UICR area (address 0x10001000)

    I will investigate more about the above :)

    are there other effective method to flash the bootloader and the softdevice? :)

    thanks!

Children
No Data
Related