AnsweredAssumed Answered

HAL CDC Extra byte in CDC_Receive_FS buffer

Question asked by solovei.vladisla.001 on Aug 7, 2017
Latest reply on Aug 8, 2017 by Vangelis Fortounas

I have created a simple project in cubemx, with usb fs device (CDC).

But i see an strange behavior: The buffer of CDC_Receive_FS contains (bytes sent from PC + 1 extra byte) 

On example, when sending 0x32 0x33 in buffer i got 0x32 0x33 0xee

0x32 0x34 ->  0x32 0x34 0xaf

0x32 0x35 -> 0x32 0x35 0x6e

etc..

Why can this happen?

Outcomes