LP-AM263: QSPI Flash read/write test in configuration mode

Part Number: LP-AM263

Hi Team,

We have been able to boot(1s-1s-4s) with custom flash(MT25QL512ABB), but can't access flash above 8MB.

We tried to read/write QSPI flash in configuration mode, but we couldn't find the API in SDK 09.01.

If possible, Cloud you share example or more details with me?

Thanks!

Louis,

  • Hello Louis,

    Can you share your example that you have tried for accessing QSPI flash in configuration mode? 

    Regards,
    Gunjan

  • Hi Gunjan,

    We modified QSPI_norFlashRead and QSPI_readConfigMode in SDK 09.01 example(qspi_flash_diag_am263x-lp_r5fss0-0_freertos_ti-arm-clang).

    int32_t QSPI_readConfigMode(QSPI_Handle handle, QSPI_Transaction *trans)
    {
        int32_t status = SystemP_SUCCESS;
    
        if((handle != NULL) && (trans != NULL))
        {
            QSPI_ReadCmdParams reParams;
            QSPI_Object  *object = ((QSPI_Config *)handle)->object;
    
            reParams.cmd = object->readCmd;
            reParams.cmdAddr = trans->addrOffset;
            reParams.numAddrBytes = object->numAddrBytes;
            reParams.rxDataBuf = trans->buf;
            reParams.rxDataLen = trans->count;
    
            status = QSPI_readCmd(handle, &reParams);
        }
        else
        {
            status = SystemP_FAILURE;
        }
        return status;
    }
    
    int32_t QSPI_norFlashRead(QSPI_Handle handle, uint32_t offset, uint8_t *buf, uint32_t len)
    {
        int32_t status = SystemP_FAILURE;
    
        QSPI_Transaction transaction;
    
        QSPI_transaction_init(&transaction);
        transaction.addrOffset = offset;
        transaction.buf = (void *)buf;
        transaction.count = len;
        status = QSPI_readConfigMode(handle, &transaction);
    
        return status;
    }

    The source code in attached file.

    qspi_flash_diag_am263x-lp_r5fss0-0_freertos_ti-arm-clang.zip

    Also, Do you have access QSPI flash example in configuration mode?

    Please advise, thanks!

    Louis, 

  • Hi Louis,

    I am looking into it. Please expect a reply by tomorrow.

    Regards,
    Gunjan

  • Hello Louis,

    Currently, MCU_PLUS_SDK software doesn't support access beyond 8MB.

    Regards,
    Gunjan

  • Hi Gunjan,

    No problem, 

    Thanks for your assistance.

    Louis,