cancel
Showing results for 
Search instead for 
Did you mean: 

how to increase usb receive buf size up to 1024 bytes in STM32F103

alireza nazem
Associate II
Posted on July 02, 2018 at 09:38

Hello everyone,

I have used cubemx and usbd_cdc codes to activate usb virtual port in stm32f103 device. it works fine but i have problem receiving more than 128 bytes at once from pc. i need to get buffer to hold max of 1024 bytes send by pc. please instruct where in codes i should manipulate or add lines to increase input buffer size for usb?? by the way i played around with buffer sizes in  usbd_def.h and usbd_cdc.h but increasing them more than 128 causes either mcu to hang or send junks. Thank you

0 REPLIES 0