Associate III
November 30, 2018
Question
Unable to establish Nucleo - STM32L476RG - USB CDC communication.
- November 30, 2018
- 4 replies
- 3810 views
I am trying to send and receive data through the USB port on the Nucleo-L476RG, but am unable to see any data on Putty.
I generated an initialization code with STM32CubeMX enabling the following:
- RCC
- USB_OTG
- USB_DEVICE
- SYS Serial wire
- RTC clock source
- Let CubeMX solve the clock conflicts - the USB got a 48MHz signal
In the generated code,
- I included usbd_cdc_if.h in main.c
- inside while(1) - I am sending a uint8_t array ising CDC_Transmit() based on this https://microtechnics.ru/en/stm32cube-and-usb-virtual-com-port-2/
I am able to see the COM port and am trying to read the data on Putty but I see nothing.
I am attaching the CubeMX file
Am I missing something ?
