Tool/software:
Hello,
I have a question about the MCSPI driver.
We were using the MCSPI driver to control an external SPI flash with an older version of the SDK (08.03.00.18) for a product we developed previously here.
The mode was MCSPI_MS_MODE_CONTROLLER and the setting was used in polling mode.
With this setting, a phenomenon was found in which the last data was missing in rare cases when 64KB of data was read.
When we checked the latest SDK driver, the same setting as the above mode had a different way of data transfer as shown below. I would appreciate it if you could give me some background on how you fixed this one.
(Was there a bug that you fixed, or did you fix it to extend the functionality?)
Old version (08.03.00.18): Function name MCSPI_continueTxRx: Checks the interrupt status each time, monitors the interrupts for Almost Empty for FIFO receive and FIFO Empty for FIFO transmit, and clears the interrupt if the bit is empty to control FIFO.
Current version (from 08.04.00.17): Function name MCSPI_transferControllerPoll; monitors the CH_STAT register, RXS for FIFO reception, and controls FIFO in 1-word units.
best regards,
katsuyuki sasajima.