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.

LP-AM243: OSPI Flash Write using DMA

Part Number: LP-AM243


Tool/software:

Hello,

I am currently working on writing data to the Flash present in the LP board. I started with the example project of ospi_flash_dma , but the project writes directly then uses DMA only to read the data from the Flash memory.
Can you please tell me how I can refactor the code or key aspects to consider when i want to write to Flash via DMA.

Thank you in advance.

Regards.

Solomon

  • Hi,

    Thanks for your patience.

    I am currently working on writing data to the Flash present in the LP board. I started with the example project of ospi_flash_dma , but the project writes directly then uses DMA only to read the data from the Flash memory.
    Can you please tell me how I can refactor the code or key aspects to consider when i want to write to Flash via DMA.

    Currently for NOR flashes, we support DMA reads and non DMA writes. This makes use of indirect write API call hence DMA is ruled out. The name of the API is 

    OSPI_writeIndirect
    FYI, the flash on AM243-LP is a QSPI NOR Flash, hence the above line applies to the EVM SDK in general.
     
    Hope this helps.
    Thanks,
    Vaibhav