0
\$\begingroup\$

I'm using FreeRTOS generated with the help of CubeMX. Everything was working fine until I added USB CDC unit. When I used CDC_Transmit_FS() before starting kernel, I could receive data over USB. However, when I paste the same code to thread, this is not working.

\$\endgroup\$
  • \$\begingroup\$ Add code please and check if this question has any relevance in your case. \$\endgroup\$ – Bence Kaulics Dec 15 '16 at 18:50
1
\$\begingroup\$

There are two defines in the file usbd_cdc_if.c:

#define APP_RX_DATA_SIZE  4
#define APP_TX_DATA_SIZE  4

The value 4 should be changed to 64. After that everything works great.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.