2019-03-19 09:52 PM
I have try to use the USB-VCP (Virtual COM Port) on the STM32L412KB (32-pin) but I have an issue that the code which is generated from the CubeMX got stuck at MX_USB_DEVICE_Init() and I try to debug in the Atollic TrueStudio, it causes the hard fault on HAL_PCD_init() function in USBD_Init process.
Issue: MX_USB_DEVICE_Init() got stuck
MCU: STM32L412KB (NUCLEO-32 Board)
Firmware Package Name and Version: STM32Cube FW_L4 V1.13.0
CubeMX version 5.1.0
Toolchain/IDE: Atollic TrueStudio Version 9.1.0
Please suggest, thank you very much.
P.S. I have used the USB-VCP via CubeMX on the another chip such STM32F072, STM32L053, STM32L476 with no problem.
2019-12-03 02:14 PM
This is not related to CubeMX, but to CubeL4 (which in Cube lingo may be known as "firmware"). The bug is present in v1.14, and AFAIK there's no newer version so far.
JW
2019-12-14 01:53 AM
could be hardware error.or pin mismatched
2019-12-15 04:57 PM
The USB handler is defined in startup.s files for ARMCC but not for GNU.
Here is the GNU startup file:
This is the ARM startup file:
I don't have STM32Ls. Anyone who is interested, can open a bug report.
-- pa