Can't import USB Stack 4.1.1 USB_CDC_CLASS PE component into CW 10.4

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't import USB Stack 4.1.1 USB_CDC_CLASS PE component into CW 10.4

1,103 Views
wjones
Contributor I

I've successfully imported USB Stack 4.1.1 USB_DEVICE_STACK, USB_HID_CLASS, USB_HOST_STACK, and USB_MSD_CLASS into the PE Components Library, however the USB_CDC_CLASS PE component shows it installed correctly but is not listed in the PE Components Library.  Why can't I see it under the Components Library "Alphabetical" tab?  I'm using a K60.

Labels (1)
Tags (1)
14 Replies

447 Views
danielchai
Senior Contributor I

Hi,

Did you solve this problem? I am facing the exact the same problem now.

Thank you.

-Daniel

0 Kudos

447 Views
BlackNight
NXP Employee
NXP Employee

There is a bug with filtering components: Make sure that 'filter' is *not* enabled.

See attached screensthot.

I hope this helps.

0 Kudos

447 Views
danielchai
Senior Contributor I

Hi Erich,

But when I import the USB component and try to set the send buffer and recive buffer for CDC, it shows "No inherited component assigned"

Thanks.

121212.png

0 Kudos

447 Views
BlackNight
NXP Employee
NXP Employee

You need to select a Rx and Tx RingBuffer (can you do a selection)?

Otherwise: This means that you have not all components loaded/imported. It looks like you have no ring buffer component installed.

Have you installed both *.PEupd files from

mcuoneclipse/PEupd at master · ErichStyger/mcuoneclipse · GitHub

?

See Processor Expert Component *.PEupd Files on GitHub | MCU on Eclipse

447 Views
danielchai
Senior Contributor I

Hi Erich,

Thank you.

After I successfully add the USB component and generate the code, my code is still stuck in _init_hardware part for checking the FLL as shown below.

usb3.png

Do you have any suggestions about this?

Thank you.

-Daniel

0 Kudos

447 Views
BlackNight
NXP Employee
NXP Employee

Hi Daniel,

which board (Revision?) and silicon are you using?

It might be a clock low power issue.

See

Using the 8 MHz Crystal on the FRDM-KL25Z Freedom Board | MCU on Eclipse

I hope this helps,

Erich

0 Kudos

447 Views
danielchai
Senior Contributor I

Hi Erich,

Thank you. I successfully made it work on the TWR-K60F120 board following Processor Expert Component *.PEupd Files on GitHub | MCU on Eclipse.

I made a mistake in the clock configuration part after I change it to 12Mhz, then it works.

Now I try to move it to my target board on which there is no 50Mhz external clock. It just has a RTC crystal and 12Mhz crystal.

I configured the clock settings as below.

pastedImage_0.png

pastedImage_1.png

pastedImage_2.png

After that, I generate the new code, but when I step to

MCG_C1 = (MCG_C1_CLKS(0x02) | MCG_C1_FRDIV(0x00) | MCG_C1_IRCLKEN_MASK);

it shows me

pastedImage_3.png

Do you have any ideas about this?

Thank you.

-Daniel

0 Kudos

447 Views
BlackNight
NXP Employee
NXP Employee

Can you check that your project is not impacting the debug connection signals (JTAG/SWD signals of the microcontroller)?

What you describe happened to me when I was assigning the JTAG/SWD pins or clock pins as input/output pins.

Hope this helps.

0 Kudos

447 Views
danielchai
Senior Contributor I

Hi Erich,

I check the debug pins setting. It seems all is fine.

pastedImage_0.png

0 Kudos

447 Views
dereksnell
NXP Employee
NXP Employee

Hi Daniel,

This has to do with erratum e3925 on Mask Set 0N96B used on the Tower card.  Using JTAG interferes with System Oscillator 1.

https://community.freescale.com/message/362556#362556

If you do a POR and let the code run without the debugger, it should get past that point.

0 Kudos

447 Views
danielchai
Senior Contributor I

Hi Derek,

I add a LED toggle after the init_hardware part.

I did a POR, but the LED is never on. It seems it didn't pass the init_hardware part.

Because I can't step it, I have no idea which part causing problem.

Do you have any suggestions?

Thank you.

-Daniel

0 Kudos

447 Views
danielchai
Senior Contributor I

Sorry, I measured the VREGIN again, and it is about 500mV not 5v.

I connected the USB 5v to VREGIN.

Any ideas about this?

Thank you.

-Daniel

0 Kudos

447 Views
danielchai
Senior Contributor I

Hi Derek,

When I do a POR, it does not show up in my COM port. Then I am not sure if our board hardware's problem or my configuration's problem.

One more thing is that, on our board, we don't have the USB-OTG chip.

Then the connection is just as shown below.

pastedImage_0.png

I measured the VREGIN is 5v, but USB_D+ and USB_D- are all about 50mV.

I read that when it is plugged into the PC, the USB_D+ should be pull high.

Is there something wrong with this connection?

Thank you.

Daniel

0 Kudos

447 Views
BlackNight
NXP Employee
NXP Employee

As it seems that issue comes up regularily, I wrote a short article about it (so hopefully the solution can be found easily with google ;-) ):

Processor Expert Component not Showing Up? | MCU on Eclipse

0 Kudos