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.

AM2432: change flash to IS25LP128

Part Number: AM2432
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hi team,

I'm developing industrial communication sdk for AM243x,

I need to change  Flash device to IS25LP128.

Dose the fille "IS25LP128.json" exist? If possible, please provide it.

Best regards,

Oyama

  • Hi Tomoya,

    You can follow this guide to add the support for the custom flash part:

    https://software-dl.ti.com/mcu-plus-sdk/esd/AM243X/10_01_00_32/exports/docs/api_guide_am243x/CUSTOM_FLASH_SUPPORT_GUIDE.html

    Best Regards,

    Meet.

  • Hi Meet,

    I tried this example, but I couldn't make .json file.

    This is the dialog of this time.

    Please give me some reason why this test had filed. 

    .....................................

    [OSPI Flash Diagnostic Test] Starting ...
    [OSPI Flash Diagnostic Test] Flash Manufacturer ID : 0x9D
    [OSPI Flash Diagnostic Test] Flash Device ID : 0x6018
    [OSPI Flash Diagnostic Test] Executing Flash Erase on first block...
    [OSPI Flash Diagnostic Test] Done !!!
    [OSPI Flash Diagnostic Test] Performing Write-Read Test...
    ERROR: ospi_flash_diag_test_compare_buffers:181: OSPI read data mismatch !!!
    Some tests have failed!!

    ...............................

    Best regards,

    Oyama

  • Hi Tomoya,

    I could reproduce this issue at my end, please give me some time to further investigate, what could be the issue. I used MCU + SDK version 10.0.0, could you please let me know which version you are testing on?

    Best Regards,

    Meet.

  • Hi Meet,

    I use mcu_plus_sdk in the ind_comms_sdk_am243x_09_02_00_15.

    By changing condition of if() in the ospi_flash_diag.c like bellow, I could read .json data. 

    But, data mismatch still has been happened, so this .json data might be wrong.  

        if(1)
        {
            /* Read the SFDP table and print flash details */
            status = ospi_flash_diag_print_sfdp(ospiHandle);
        }
    

    Best regards,

    Oyama

  • Hi,

    .....................................

    [OSPI Flash Diagnostic Test] Starting ...
    [OSPI Flash Diagnostic Test] Flash Manufacturer ID : 0x9D
    [OSPI Flash Diagnostic Test] Flash Device ID : 0x6018
    [OSPI Flash Diagnostic Test] Executing Flash Erase on first block...
    [OSPI Flash Diagnostic Test] Done !!!
    [OSPI Flash Diagnostic Test] Performing Write-Read Test...
    ERROR: ospi_flash_diag_test_compare_buffers:181: OSPI read data mismatch !!!
    Some tests have failed!!

    For this to work it is recommended you go ahead and run the application as mentioned below

    Have you following the steps in the above snippet?

    Regards,

    Vaibhav

  • Hi Vaibhav,

    It turns out that data writing is not worked, so data mismatch is occurred. 

    I could write data to flash using external flash writer and I confirmed that 1s1s1s spi read data are correct.

    However, there is one thing that bothers me. 

    The .json data I read from IS25LP128 is  

    "p114" {

     "cmdRd": "0x6B",

     "dummyClksRd": 0

    }

    but, read dummy clock from data seat of IS25LP128 is 8.

    If I set 0 to dummy clock of sysconfig, unintended data are added in first 8 bit.

    If I set 8, application is stopped around OSPI_init() because of dummy clock difference.

     

    Do you know how to avoid this error stop when I set different dummy clock?

     

    Best regards,

    Oyama