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.
Did you solve this problem? I am facing the exact the same problem now.
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"
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
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.
Do you have any suggestions about this?
which board (Revision?) and silicon are you using?
It might be a clock low power issue.
Using the 8 MHz Crystal on the FRDM-KL25Z Freedom Board | MCU on Eclipse
I hope this helps,
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.
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
Do you have any ideas about this?
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.
I check the debug pins setting. It seems all is fine.
This has to do with erratum e3925 on Mask Set 0N96B used on the Tower card. Using JTAG interferes with System Oscillator 1.
If you do a POR and let the code run without the debugger, it should get past that point.
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?
Sorry, I measured the VREGIN again, and it is about 500mV not 5v.
I connected the USB 5v to VREGIN.
Any ideas about this?
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.
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?
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 ;-) ):