cancel
Showing results for 
Search instead for 
Did you mean: 

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

rledean
Associate

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

0 REPLIES 0