USB Bootloader with external flash QSPI

Hi.

I'm trying to get my application to load, one part in the internal flash and another part in external flash by QSPI. Putting in the definition of the function  <BSP_PLACE_IN_SECTION (". Qspi_flash_code")>, I got it and it works correctly in debug mode. But I need to generate the file to be able to update it on my board through a USB bootloader using a pendrive.

I have the problem when generating the file to convert from SREC to BCH. The Renesas Synergy Flashloader application returns the error: ('Indexing Error, Slot:', 1609564160). Can someone help me to do this?.

My script is:

MEMORY
{
FLASH (rx) : ORIGIN = 0x00100000, LENGTH = 0x0300000 /* 3M */
RAM (rwx) : ORIGIN = 0x1FFE0000, LENGTH = 0x00A0000 /* 640K */
DATA_FLASH (rx) : ORIGIN = 0x40100000, LENGTH = 0x0010000 /* 64K */
QSPI_FLASH (rx) : ORIGIN = 0x60000000, LENGTH = 0x4000000 /* 64M, Change in QSPI section below also */
SDRAM (rwx) : ORIGIN = 0x90000000, LENGTH = 0x2000000 /* 32M */
}

 

Loading the entire application in the internal flash, works correctly. Once the .BCH file is generated, I update it with a pendrive through the USB port.

 

Regards.

Fernando

Parents
  • Hi Fernando,

    I don't think the flashloader framework can handle QSPI memory by default. It is intended to flash applications stored in internal flash memory, you might need to customize it.

    Regards,
    adboc
  • Hi.

    Thanks for the help and apologies for the delay in responding.

    I am trying to modify the bootloader program to be able to work with qspi flash memory. But first I need to be able to generate the files img#qspi.bch and img#mcu.bch separately and that's what I do not know how to do it.

    Regards.
    Fernando
  • Hi

    Can anyone help me generate the files img#qspi.bch and img#mcu.bch with the program "Renesas Synergy Flashloader.exe" when I have part of the code in the internal flash and another part in the external flash qspi ?.

    Thank you very much

    regards

Reply
  • Hi

    Can anyone help me generate the files img#qspi.bch and img#mcu.bch with the program "Renesas Synergy Flashloader.exe" when I have part of the code in the internal flash and another part in the external flash qspi ?.

    Thank you very much

    regards

Children
No Data