K-70 USB Device CDC

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

K-70 USB Device CDC

969 Views
VGS
Contributor III

 

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

0 Kudos
3 Replies

430 Views
bataliero
Contributor III

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)));

0 Kudos

430 Views
ndavies
Contributor V

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));

0 Kudos

430 Views
PaoloRenzo
Contributor V

Have you tried K70 DFU software? That one is bare metal and I tested like 3 weeks ago without problems.

0 Kudos