Skip to main content
alireza nazem
Associate II
July 2, 2018
Question

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

  • July 2, 2018
  • 0 replies
  • 492 views
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

    This topic has been closed for replies.