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.

MCU-PLUS-SDK-AM243X: Using a Custom Flash Device with MCU SDK+

Part Number: MCU-PLUS-SDK-AM243X
Other Parts Discussed in Thread: LP-AM243, SYSCONFIG

Our customer wants to use a Custom Flash Device with the AM243x MCU SDK+.

I have attempted the SFDP-based method with reference to the following. I successfully read SFDP from the flash "S25HL512TFAMHI010" on LP-AM243 using the flash_diag example.

https://software-dl.ti.com/processor-industrial-sw/esd/ind_comms_sdk/am243x/11_00_00_08/mcu_plus_sdk/docs/api_guide_am243x/CUSTOM_FLASH_SUPPORT_GUIDE.html

The contents of the default "S25HL512T.json" included in the SDK differ from those read from the flash on the LP-AM243. Why is this?

C:\ti\mcu_plus_sdk_am243x_11_01_00_17\source\sysconfig\board\.meta\flash\S25HL512T.json

S25HL512T.json.txt 

The JSON file with the SFDP read from the flash on LP-AM243.

SFDP from flash on LP-AM243.json.txt 

I want to try QSPI boot on LP-AM243 using the SFDP read from the flash on LP-AM243. I understand that I need to load the JSON in SysConfig on the "sbl_ospi" CCS project and then build, is that correct?

Best regards,

Daisuke

 

  • Hi Daisuke,

    The JSON file with the SFDP read from the flash on LP-AM243.

    The JSON file generated/logs from the OSPI Diagnostic differs from the current SDK JSON file for the on board flash. The primary reason for this being, OSPI Flash Diagnostics is meant to retrieve the flash configuration values, irrespective of the flash being a SPI/QSPI/OSPI flash. Once the values has been retrieved and the logs are printed, this needs to be verified with the Flash Datasheet as a sanity check in order to make sure all the values are correct.

    OSPI Flash Diagnostics works just fine for most of the flashes, but for some flashes, even the on board flash, you would see some changes being there, hence diagnostics can be used as a tool currently to fetch the Flash Configuration values, which are pretty much 95% correct. 

    NOTE: Its always good to cross check with the datasheet in order to verify the values.

    Thanks,

    Vaibhav

  • Hi Daisuke,

    Just to add on top of my previous response,

    Our customer wants to use a Custom Flash Device with the AM243x MCU SDK+.

    please tell me the name of the custom flash which the customer wants to use. I might have the flash configuration values for them to get started with, from my previous debugs.

    If it is not there with me at the moment, I can try to provide the values give you can share the Flash Datasheet with me here on the forum.(NOTE: Email also works fine if it is NDA from customer's end)

    Looking forward to your response.

    Thanks,

    Vaibhav

  • Hi Vaibhav-san,

    Thank you for your reply.

    Our customer tried the following two types of flash on their custom board:

    - W25Q512JVFIQ
    - S25HL512TFAMHI010

    However, both failed to boot when applying the respective JSON files read out using the flash_diag example to SysConfig.
    Additionally, the S25HL512TFAMHI010 succeed to boot when using the default "S25HL512T.json" included in the SDK.

    I am now trying to use LP-AM243 instead of their custom board to check whether it boots using the read-out JSON file from the S25HL512TFAMHI010 on LP-AM243.

    Best regards,

    Daisuke

  • Hi Daisuke,

    W25Q512JVFIQ

    If they have this flash on the custom board, they can try the following SysConfig configurations. And it should be up and running.

    SysConfig > OSPI configuration:

    SysConfig > FLASH Configuration:

    These should work on the customer's custom board.

    Let me know.

    Thanks,

    Vaibhav