This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM2612-Q1: QSPI/Boot questions

Part Number: AM2612-Q1

Tool/software:

Team, 

Received this list of questions: 

  1. If I want to flash and then execute an application from QSPI, do I need to toggle the boot switch every time I reflash the application?
  2. Is the Secondary Bootloader (SBL) capable of flashing a new application into QSPI without changing the boot switch?
  3. If this is possible, is there a guide or documentation that explains the procedure for this case?
  4. Can Uniflash-Tool flash an application into QSPI while the device is in QSPI boot mode from (SBL), or must it always be in UART boot mode for flashing?
  5. Is there a specific variant of the SBL that allows executing an application directly from QSPI (without requiring the image to first be loaded into RAM)?

Thanks!

Jason

  • Hi Jason,

    If I want to flash and then execute an application from QSPI, do I need to toggle the boot switch every time I reflash the application?

    No, this is not required. It is necessary to make sure that the device is in OSPI/QSPI boot mode to bootup.

    Is the Secondary Bootloader (SBL) capable of flashing a new application into QSPI without changing the boot switch?
    If this is possible, is there a guide or documentation that explains the procedure for this case?

    SBL is a bootloader which does the PLL initialization and application loading. However, you can modify the SBL to do this. For example, the SBL can be designed to receive some data and write into flash. This is application level logic. 

    Please take look at the Secondary Bootloader (SBL) examples in the MCU PLUS SDK. https://software-dl.ti.com/mcu-plus-sdk/esd/AM261X/10_00_01_10/exports/docs/api_guide_am261x/EXAMPLES_DRIVERS_SBL.html

    Also please take a look the same set of example in AM263P as well. You can find some extra ones there since the 11.0 SDK has been released in AM263P.

    Can Uniflash-Tool flash an application into QSPI while the device is in QSPI boot mode from (SBL), or must it always be in UART boot mode for flashing?

    Yes this is possible. It is to be noted that the flasher binary that will be used needs to be adapted (flash configurations alignment) to the corresponding flash which is planned to be used.

    Is there a specific variant of the SBL that allows executing an application directly from QSPI (without requiring the image to first be loaded into RAM)?

    All the SBL's load the application into RAM. However there is the concept of XIP where the application will be executed from flash. XIP means that the application will sit in Flash and will be executed from there, without copying to flash. Please check the below link.

    software-dl.ti.com/.../BOOTFLOW_XIP.html

    However the viability of XIP with QSPI flash needs to be checked

    Regards,

    Aswin