Tower K60F-120 Processor Expert MSD demo. USB fails to enumerate

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

Tower K60F-120 Processor Expert MSD demo. USB fails to enumerate

1,092 Views
deuteron
Contributor II

We have a new TWR-K60F120M board and also a TWR-K60N512. We are trying to run the USB stack (4.0.3) examples for a mass storage device using the processor expert implementation without MQX. This works for the K60N512 but not for the K60F120M. With the K60F, the USB device fails to enumerate on a Windows 7 PC. Our USB hardware seems OK since the USB + MSD demo using MQX works OK on both boards but note that the MQX (V3.8.1 or V4) demo makes a RAM based memory device while the PE demos make a flash based memory device.

We did not modify the software or hardware at all, so we wonder whether anyone has managed get the USB stack 4.0.3 PE+MDS+K60F120  demo working, and whether anyone has any idea what might be wrong. Our K60F120 chip is batch ON96B

We also tried to use the PE examples that come with MCU 10.3 that do not use neither the USB stack nor MQX, but there is no MSD example for the K60F. When we tried porting the K60N example to K60F, we discovered that those examples enable the AXBS cross-bar and we did not manage to re-program the AXBS for the K60F without getting a debug-halt.

Does anyone know what the problem might be?

Labels (1)
0 Kudos
2 Replies

579 Views
deuteron
Contributor II

There are two out-of-the-box example programs that look the same but they are not.

The USB stack PE MSD example for the K60N512, which works right out of the box uses the Freescale tool chain.

The USB stack PE MSD example for the K60F120, which does not work, uses the GNU compiler, which does not understand many of the pragmas associated with the USB functions. This it compiles, with several warnings, but does not implement the USB callback functions correctly, and does not work. Changing the tool chin for this program resulted in other compilation problems. However, taking the K60N512 example and changing the CPU does work, provided all the run and debug configurations are set up correctly. Someone at Freescale should still fix the out-of-the-box K60F120 example, since it does not work.

0 Kudos

578 Views
Dekiru
Contributor IV

Hi,

I am not sure if you did the change like what is mentioned in the release notes (USB_STACK_RELEASE_NOTES_V4.0.3.pdf, page #7)

Before running the Device and OTG examples, because there are some limitations in the

generated code of the USB_LLD component, after generating the code with Processor

Expert, there are some changes needed in the code before building:

Regards

0 Kudos