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: Switching between OSPI_readCmd and OSPI_writeCmd takes 2 milliseconds

Part Number: MCU-PLUS-SDK-AM243X


When measuring the OSPI performance I concluded that there is a weird delay when switching from writing to reading (or the other way around its the same) on OSPI.

The functions mentioned in the title are from driver/ospi.h

In the above image you see a table of the measuring times, packet 1 and 2 are writes, and packet 3 and 4 are reads. As you can see between writes there are only about 7 micro seconds, and the same goes for reads.

But when switching, this takes 2 milliseconds, and in my code are no interrupting things in those 2 milliseconds. Why is there such a big delay?