Skip to main content
rledean
Visitor II
August 30, 2019
Question

NUCLEO-L496ZG-P - USB Host Virtual Port Com - Issues to receive Data

  • August 30, 2019
  • 0 replies
  • 435 views

Hi,

I am trying to communicate with a modem via USB using NUCLEO-L496ZG-P.

I use CubeMX do to the setting, FreeRTOS and St USB Host library.

First, I init the USB "MX_USB_HOST_Init();".

Then to send I use this "USBH_CDC_Transmit(&hUsbHostFS,(uint8_t * )dataTx,strlen(dataTx));"

And this to receive "USBH_CDC_Receive(&hUsbHostFS,(uint8_t *)dataRx,100);"

The issue is that I don't receive the amont of data that I desire.

So is there more init to do ? or are those functions not enought do communicate.

Thank you for your time and answer.

Raphaël

This topic has been closed for replies.