cancel
Showing results for 
Search instead for 
Did you mean: 

NUCLEO-L552ZE-Q CDC Not working. USB C

guitardenver
Associate II

I just go the NUCLEO-L552ZE-Q dev board.

STM32Cube IDE Version: 1.5.1

Build: 9029_20201210_1234 (UTC)

Using 1.3.1 Firmware

The base CDC code generated by the IDE does not seem to work. It does not enumerate and if I try to send something I get a hard fault. pClassData is NULL. So some initialization code is not being called.

I used the IDE to open up the base project for the Development board.

In Middleware, I chose the CDC option and generated the code.

The project file is attached. I searched the web, and found some people having similar issues and that the code does not work "out of the box".

I increased the heap and stack size, but the code never gets to the point to allocate the memory in the first place.

Is the generated code by the IDE supposed to work without further code? Or at least enumerate?

0 REPLIES 0