cancel
Showing results for 
Search instead for 
Did you mean: 

Cube HAL 1.7- USB CDC - F411 - Wait for a char

leogarberoglio
Associate III
Posted on September 02, 2015 at 16:20

Hi, I need to send 16kbyte from uC to the PC. PC is host. I'm using CDC.

What is the best way to use hal library to wait for a character from de PC to start send data?

is CDC_Receive_FS function a blocking function?

thank

2 REPLIES 2
tm3341
Associate II
Posted on September 05, 2015 at 11:27

Maybe my lib can help you here. Using Getc function you can check if character is received.

http://stm32f4-discovery.com/2015/08/hal-library-21-multi-purpose-usb-library-for-stm32fxxx/

leogarberoglio
Associate III
Posted on September 05, 2015 at 19:13

Ok, I will look at them. BTW you helpd me a month ago with my keil installation on your web page, with team viewer!

I receive my F7 board so I'm looking at your lib's for it. unfortunatley I use system workbench and I have to figure out how to import them.

Thank