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.

AM4377: QSPI flashing from JTAG

Part Number: AM4377

Hi Team,

My customers has an AM4377 design without SD interface. So the QSPI flashing program in the PDK-RTOS cannot be used by them for the QSPI flashing. 

As they used the PDK_RTOS for AM4377 application, so they're asking the QSPI flashing program by JTAG/CCS only. 

Is there any tool we can use for flashing the AM4377 QSPI flash? 

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

    There is a QSPI flash writer under pdk_am437x_1_0_x\packages\ti\starterware\examples\qspi\flash_writer. It reads from a SD card and writes into QSPI.

    There is also a QSPI driver test example under pdk_am437x_1_0_x\packages\ti\drv\spi\example\qspi_flash. It writes a pattern into QSPI.

    For your case without MMCSD, you need to adapt one of the above codes. For example, in the first case, there is a MMCSD open and read, to copy the image into DDR:

    status = MmcsdImageCopy(fileName,
    destAddr,
    &gQspiAppFlashWriterObj.length);

    You can change this to read a data file from hard drive, with data into destAddr with certain length. Then use the same routine to write into QSPI.

    Or, in the QSPI driver test example, replace the data pattern in txBuf[] with your data (which is fopen/fread from your file).

    Regards, Eric
  • Steven,

    The SD card interface is used to only fetch the boot image that need to be flashed to the QSPI flash. In the flash writer the customer can modify the source to remove the fopen from the FAT filesystem on the SD card and set it up to read the file over the emulator.

    There is an effort to provide production flashing tool but this won`t be available until 2018.

    Regards,
    Rahul