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.

AM2634: Flash Write QSPI Driver

Part Number: AM2634


Tool/software:

Hello

We are using the Board Flash Driver from the current SDK (TI_mcu_plus_sdk_am263x_10_02_00_13).

Since we are using the external flash as ring memory, we want to write smaller units than 256 bytes (page size). Our external flash support write commands with 1-256 Byte. 

What is the best way to do this? Rewrite "Flash_norQspiWrite" function or do you see better solutions?

Best regards

Dominik

  • I made a custom "Flash_norQspiWrite" function. Testing was successful.

    There is only a small modification needed:

    Change 

        /* Check offset alignment */
        if(0 != (offset % attrs->pageSize))
        {
            status = SystemP_FAILURE;
        }
    to 
        /* Modified check offset alignment */
        {
            int32_t pageOffset = offset % attrs->pageSize;
    
            if(0 != pageOffset)
            {
                /* Prevent page wrapping */
                if ((pageOffset+len) > attrs->pageSize) {
                    status = SystemP_FAILURE;
                }
            }
        }