Open bertvoldenuit opened 7 months ago
@bertvoldenuit I think the modification makes sense, please submit the PR anyway.
BTW, maybe you are getting the TERR for some other reason, this kind of analysis is hard to do, maybe you could ask form help from in the Microchip forum, although they know nothing about NuttX, they could give you more some hints about that could be causing the issue.
@pkarashchenko do you have some other suggestion?
@bertvoldenuit any news about this SAMD21 issue?
I am still blocked. I will ask Microchip and do the PR.
I did the PR.
Here is a link to the Microchip forum where I posted the issue: https://forum.microchip.com/s/topic/a5C3l000000BsKQEA0/t393153
At each transfer, there is a TERR (transfer error) on the RX channel. I tried to put the MISO pin on idle/high/low but it has no effect.
According to SAMD21 Errata:
In the spi driver, in the description and in the code it is always Tx and then Rx except in one place where it is Rx and then Tx which could lead in the FERR according to Errata
I think it would be better to swap Rx/Tx in the following code:
into
I can make a PR but it does not change anything in my case, I still get TERR.
Could disabling the DMAC_INT_TERR interrupt be a way around? when I disable it nsh is not showing up.