Skip to main content
guitardenver
Associate III
February 21, 2021
Question

NUCLEO-L552ZE-Q CDC Not working. USB C

  • February 21, 2021
  • 0 replies
  • 817 views

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?

This topic has been closed for replies.