Describe the bug
with the native kinetis usb controller driver, the mass demo runs unstable.
To Reproduce
Steps to reproduce the behavior:
Environment (please complete the following information):
@jfischer-phytec-iot Do you have time to check it? or I will check it later. I tried the shim driver, and it is OK.
Work fine for me, tested on Linux.
dd if=/dev/urandom of=test.img bs=512 count=300
dd if=test.img of=/dev/sdd bs=512 count=300
dd of=test1.img if=/dev/sdd bs=512 count=300
diff test1.img test.img
I had to disable MPU. I usually have problems on the frdm_k64f when MPU is enabled. Bisect identified aa826960d89e066bd2219b0576a0c4f3a475cb3f, but I did not have more time to investigate.
There have been some recent MPU fixes in #17603: @jfischer-phytec-iot, could you check if this still needs MPU to be disabled, in order to work?
@MarkWangChinese @jfischer-phytec-iot i've added a new pull #17834 that should fix USB's MPU access to RAM, not sure about formatting in Windows. Can you please test?
USB is a different master (4) than ethernet (3) @ioannisg.
@MarkWangChinese @jfischer-phytec-iot can you test this new patch?
Thanks @agansari
Yes, I do one simple test, it seems fix the issue. I will do more testes later (today), and give the result.
Yes, I do one simple test, it seems fix the issue. I will do more testes later (today), and give the result.
Thanks @MarkWangChinese , let us know of the result of your testing!
I did the test and it solved this issue.
Then it seems we are good to go FWIW, I ran the complete sanitycheck on frdm-k64f on the related PR, to confirm that no tests are affected.
Most helpful comment
I did the test and it solved this issue.