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.

RTOS/AM5728: QSPI programming questions

Part Number: AM5728

Tool/software: TI-RTOS

Hi,

I need the document which have the details for the qpsi and external flash for the IDK-AM5728 wrt to the non-os programming.
While going through the diag application for qspi, got few queries like

1. How many blocks are created in qspi flash ? What is the size of one block ?
2. Difference between the CONFIG and MMAP mode ?

Please share on links or docx from where I can get these info

BR,Abhinav

  • The RTOS team have been notified. They will respond here.
  • Abhinav,

    The information that you need is spread across Technical reference manual for AM572x and the datasheet for the serial flash (S25FL)

    Refer to the Quad Serial port Interface and the L3 memory map section of the technical reference manual to understand Memory mapped and config mode operation for QSPI. I will describe it here in short summary so you can correlate that with the details in the TRM.

    With Memory mapped mode, flash memory can be accessed using direct QSPI address space in the device Memory map. When QSPI is used in memory mapped mode flash device can be accessed using address QSPI_ADDRSP1 described in the L3 memory map. In config mode the flash needs to be programmed using the Erase/Read/write protocol as described in the S25FL flash data sheet as in you need to send page erase/program/read command, send location to be read and the number of bytes to be sent and then the SOC can access the data on the serial data pins. since SOC can access data directly using its address map in memory mapped mode, this is a faster way of reading and writing to flash and can also be used to execute code directly from the QSPI flash instead of copying it over to device memory.

    The count and size of block/sector is defined in the S25FL data sheet for the flash used on the IDK. Link to data sheet is provided below:
    www.cypress.com/.../download

    In addition to the diag and the QSPI basic example, you should also refer to the qspi flash writer provided in the boot folder at the following location.
    pdk_am57xx_x_x_x\packages\ti\boot\sbl\tools\flashWriter\qspi
    This demonstrates how an binary can be programmed into the flash that spans across multiple blocks. Note the QSPI flash mandates that you erase before you program pages on the flash.

    Hope this helps with the understanding.

    Regards,
    Rahul
  • Thanks Rahul for the information.