2015-02-13 08:40 AM
I generated a USB CDC driver using Cube MX for the STM32L0538 DISCO. This compiled and linked and connected to a PC.
I tried to send some bytes using CDC_Transmit() but I then get USB NOT RECOGNIZED.Seems to be a hardfault in the call to USBD_CDC_SetTxBuffer()Any ideas ?Can anyone offer any guidance on how to use these function or an example to crib ?2015-02-26 07:40 PM
Hey,
I have the same problem, just on an STM32F072 Discovery board instead. Have you found a fix yet? I've contacted ST support about this, I'll post on here as soon as they respond.2015-03-02 06:24 AM
ST responded. They directed me to
. I still can't figure out how to do it... If anyone has implemented the CDC class on an STM32F0, please tell us how you did it!2015-03-27 01:11 AM
Did you figure out what the problem was? I'm on a STM32L053C8 Discovery board and I have exactly the same problem - usb code generated by CubeMX doesn't work, albeit the example applications from the Cube package do.
2015-03-30 01:46 AM
Did you increased the stack size (Ex: 0x2000)?
-Mayla-To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2015-07-01 02:45 AM
Fixed in MX 4.7
The issue was PB0,PB1, PA2,PA3,PA6,PA7 not configured properly.2015-07-06 10:15 PM
Hi all,
I have created code using CUBEMX for stm32 L0.I am able to send and receive data only one time but multiple time receive and sending is not happening . what may be the issue ..