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: 2434 EVM OSPI FLASH DIAG error

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

Hi experts,

     I have two questions;

    1. For EVM board, Import ospi flash diag project and build. Compare the log with example sbl_uart_uniflash. The differences shown in below picture. The left is imported from a json file, and test failed. The right is the default configuration and work normal.  Is a bug?

    2. Can you provide a usable MX25LM25645G flash json file. Looks like you've verified the chip before.

        

  • Hello Liang,

    Our expert for this topic is out for a few days but I am asking around to see if we have such a file available.

    Best Regards,

    Ralph Jacobi

  • Hi Ralph,

          Thanks.

          Our custom board use MX25LM25645G.

          When config as 1s-1s-1s mode, the ospi_flash_io project test passed. Import to sbl_uart_uniflash project and success to transmit sbl_null. But without any log when switch to OSPI BOOT MODE(Normally we can see log in the uart terminal).

          When config as 8d-8d-8d, the ospi_flash_io project test failed(Init ospi failed).

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    static int32_t Flash_norOspiReadId(Flash_Config *config)
    {
    ...
    status = Flash_norOspiCmdRead(config, idCfg->cmd, cmdAddr, numAddrBytes, dummyBits, idCode, idNumBytes);
    /* Verify ID with filled data */
    if (status == SystemP_SUCCESS)
    {
    uint32_t manfID, devID;
    /******* 8d-8d-8d test failed: manfID=0, devId=0 ******/
    manfID = (uint32_t)idCode[0];
    devID = ((uint32_t)idCode[1] << 8) | ((uint32_t)idCode[2]);
    if (!((manfID == config->attrs->manufacturerId) && (devID == config->attrs->deviceId)))
    {
    /* Try the other 3 bytes */
    manfID = (uint32_t)idCode[3];
    devID = ((uint32_t)idCode[4] << 8) | ((uint32_t)idCode[5]);
    if (!((manfID == config->attrs->manufacturerId) && (devID == config->attrs->deviceId)))
    {
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hello Liang,

    The log being output from the OSPI diagnostic example is an output of the SFDP table inside the flash itself, we do not have a "correct" table as this information is not TI property and all we provide is the parsing of this information in SysConfig. The Flash Selection Guide mentions that this flash meets requirements for operation, but it hasn't been directly tested in our bench.

    This failure to switch to 8d mode has been observed before and we are currently working with the flash vendor to find a fix for it. As of now, we don't have any current workarounds but I can update you with more information once we find a solution.

    Best,

    Daniel

  • Hi Daniel,

         "Without log" means that after download SBL_NULL and switch to OSPI BOOT mode. In other words, SBL_NULL image load from OSPI MODE failed. And i tried switch to boot from spi mode, success!

        Do you have a list of flash chip that  passed 8d mode test. Meybe we can replace with a valid chip when redesign hardware.

  • Hi Liang,

    Is the S28HS512TGABHM010 Octal flash that we use in the AM243x EVM suitable for your application? 

    Best,

    Daniel

  • Hi Daniel,

         Yes, but we have not used  S28HS512TGABHM010 before, so it is better to have a list  to confirm whether there are chips that we have used in mass production.

  • Hi Liang,

    We don't really have a list of tested devices for AM243x. The Flash Selection Guide should be used in this case to evaluate which flash memory would be compatible with the SoC and fit your application. Also please check the FAQ regarding this topic for more information as well: (1) [FAQ] OSPI FAQ for Sitara/Jacinto devices - Processors forum - Processors - TI E2E support forums

    Link to Flash Selection Guide: AM243x OSPI, QSPI Flash Selection Guide

    Best,

    Daniel

  • Hi Daniel,

        Thanks.

        For MX25LM25645G, when you find a solution to fix 8d mode, please update to me in time.

  • Hi Liang, 

    I will let you know once a solution is found.

    Best,

    Daniel 

  • Hi Daniel,

       I have an extended question to consult.

      Because current MX25LM25645G can only used with SPI mode but not OSPI mode. In this case, I can only use CCS to debug APP. When I download BOOT & APP through default_sbl_ospi.cfg, APP failed to load in BOOT(sbl_ospi project, see the below code).

      For SBL_OSPI, I  tried to modify flash config to SPI MODE and rebuild. And for default_sbl_osip.cfg, I tried to  comment out the last line(... operation=flash-xip). But problem remain.

      How do I need to modify the SBL_OSPI project and the default_sbl_ospi.cfg file?  

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    int main(void)
    {
    ...
    bootHandle = Bootloader_open(CONFIG_BOOTLOADER_FLASH0, &bootParams);
    if (bootHandle != NULL)
    {
    /* @Error:This function blocking forever */
    status = Bootloader_parseMultiCoreAppImage(bootHandle, &bootImageInfo);
    ...
    }
    ...
    }
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi Liang,

    Can you please kindly open a separate thread for the above question? I would have to reassign this questions to a different expert and would like to keep this thread open to track the first question.

    Best,

    Daniel

  • Hi Daniel,

    OK, I have created another question, and will delete the above extend question under this topic later. 

  • Hi Daniel,

       Is there a verified flash recommendation for 3V power supply? I'd like to try replace it without changing the hardware.

  • Hi Liang,

    Not verified, but probably the safest option would be using the 3.3V version of the Flash currently on the EVM, which would be the S28HL512T (S28HS256T, S28HS512T, S28HS01GT, S28HL256T, S28HL512T, S28HL01GT, 256Mb/512Mb/1Gb SEMPERTm Flash Octal interface, 1.8V/3.0V (infineon.com))

    Best,

    Daniel

  • Hi Daniel,

         Thanks.  It seems that S28HS512T and S28HL512T are just different power supply voltages, and the most of software commands are the same, so can we use the default TI sysconfig FLASH config for S28HL512T?

  • Hi Liang,

    Everything should be the same as they share the same datasheet, but please verify if there are no OPN-specific instruction sets and also double check the Device and Manufacturer ID corresponding to the 1.8V part; I believe these are the two important things to check.

    Best,

    Daniel