Dear all,
I am working with Kinetis K-70(TWR-K70F120M + TWR-LCD) Tower module using CWDS ver10.2 with windows-7 OS
I have try to work USB Device CDC application using Kinetis 120MHz bare metal sample code (KINETIS_120MHZ_SC) and USB Stack ver_3.2
I got an error message in both sample code
--------------------------------------------------------------------------
USB Device Not Recognized
One of the USB device attached to this computer has
Malfunctioned, and windows does not recognize it.
--------------------------------------------------------------------------
But MQX ver3.8 USB Device CDC sample code is working fine
We need bare metal sample code
Please suggest what could be the solution for the above error?
Thanks,
Prabhu.S
I had same problem on TWR-k60 but
__attribute__ ((aligned(512)); solved problem;
btw there is typo , last bracket is missed.
should be :
tBDT tBDTtable[16] __attribute__ ((aligned(512)));
I just went throught this on a K60 application. Check the allocation of the BDT table. It must be on a 512 boundary.
The following lines (9-10) in USB.c are wrong.
#pragma data_alignment=512
tBDT tBDTtable[16];
CW10.x does not support that pragma.
I had to change the line to
tBDT tBDTtable[16] __attribute__ ((aligned(512));
Have you tried K70 DFU software? That one is bare metal and I tested like 3 weeks ago without problems.