Closed harbaum closed 1 year ago
Perhaps not unrelated: I have seen very similar problems with the USB host, although there the problems were when writing to the device. So my assumption is, that this is some kind of generic DMA problem or similar and not a problem with SDH or USBH.
This is a cache issue, and full test data to buff
is not right also, we will push patch later.
Have done.
Indeed, the test now passes. Thanks a lot!
I have been testing the example/fatfs on a BL616 and cleaned it up a little bit (see PR https://github.com/bouffalolab/bouffalo_sdk/pull/169). While most changes are just cosmetics (no more \0 bytes in ASCII test file) I added a small section that fills the receive buffer with $55 bytes before reading a new test data chunk. I did this because all chunks contain the same data and it makes sense to invalidate this before reading and comparing the same data again.
To my very surprise the test now fails. Some data is not overwritten on read. 32 Bytes are still $55 after reading the second chunk: