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.

PROCESSOR-SDK-AM64X: Retrieving SFDP information from QSPI/OSPI only possible in No-Boot mode?

Part Number: PROCESSOR-SDK-AM64X
Other Parts Discussed in Thread: SYSCONFIG

Hi TI,

I want to read out SFDP information from custom QSPI flash to simplify configuration via SysConfig tool. This guide (https://software-dl.ti.com/mcu-plus-sdk/esd/AM64X/08_05_00_24/exports/docs/api_guide_am64x/CUSTOM_FLASH_SUPPORT_GUIDE.html) mentions in "Step 1" that "You will need have to initialize the SOC in no boot."

Can you please explain why the mentioned tool (in specific function ospi_flash_diag_print_sfdp() in ospi_flash_diag) is only working in No-Boot mode? Is there any workaround to get it working with other boot modes?

Thanks for your help and best regards,

Felix

  • Hi Felix,

    Have you tested that indeed the ospi_flag_diag is only working in NOBOOT mode with your custom flash? Booting this example from UART should work also.

    Regards,

    Prashant

  • Hi Prashant,

    thanks for your quick reply. We are going to use OSPI/SQPI flash as primary boot medium and USB (via DFU) as secondary boot medium, so it is not planned to use UART boot mode or NOBOOT mode on our custom board.

    I tested loading ospi_flash_diag via CCS (AM64-EVM booted with SBL NULL loaded from OSPI), but this threw some errors when trying to read out SFDP information.

    Is there any alternative besides UART and NOBOOT mode to get this example working?

    Thanks for your help and best regards,

    Felix

  • Hi Felix,

    The SFDP information retrieval is an one-time operation like once we have retrieved the SFDP by booting in any boot mode, we should be able to utilize that info whenever needed. So, I would like to know if you can use any boot mode to retrieve SFDP. After retrieving SFDP, you may switch to OSPI/QSPI as your primary boot medium & USB as secondary boot medium.

    I tested loading ospi_flash_diag via CCS (AM64-EVM booted with SBL NULL loaded from OSPI), but this threw some errors when trying to read out SFDP information.

    For this example to work, we must have OSPI in reset state. So, in order to have that, we have to initialize board by some other boot media except OSPI.

    Regards,

    Prashant

  • Hi Prashant,

    I was able to retrieve SFDP information after flashing SBL_NULL via DFU. That will work for me, thanks for your help.

    Best regards,

    Felix

  • Hi Felix,

    Thanks for the confirmation.

    Regards,

    Prashant