USB Strange Out Message instead of SOF

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

USB Strange Out Message instead of SOF

1,013 Views
ivosenn
Contributor I


Hy there

I'm using a MK60DN512 with MQX 4.0.0. We are using a Flash memory stick, which is connected on the USB Master of the K60 controller. Now we have the problem, that the stick is suddenly not readable or writable anymore, this after working for several minutes/hours. After analysing the USB BUS we realised that this always happens when the start of Frame message exactly matches an OUT Message. We have an SOF Message at  -286us with the number 1110 and we have one on 1.22ms with the number 1112. The SOF with the number 1111 is missing. Instead of this there is exactly on this position an out Message with endpoint 8. This endpoint does not exist and after and out, it is also not allowed to have another out without ACK NACK ... Does anybody know this problem?  Might this be a HW controller problem? The SOF Message is generated automatically by the controller isn't it?

Thanks for your help

Ivo

tek00000.png

0 Kudos
1 Reply

764 Views
CarlosCasillas
NXP Employee
NXP Employee

Hi Ivo,


You could refer to the SOFTHLD description on USB chapter of K60 Reference Manual. According with this part, the value of 74 should be stored on SOFTHLD when the worse case happens (64-byte packets); instead of calculating this value dynamically, as this causes a continuous overwrites to the register, which seems to be causing such behavior.


Hope this will be useful for you.
Best regards!
/Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos