I use UM0424 ST library to connect my STM32F103 with computer. I want send 3 bytes data (normally they send 2 bytes from ADC). I change wMaxPacketSize in "Descriptor of Custom HID interface" but when I try send 3 bytes instead 2 my communication hangs.
This is my send code:
Send_Buffer_ = 0x07;
Send_Buffer_ = high_sample;
Send_Buffer_ = low_sample;
UserToPMABufferCopy(Send_Buffer_, ENDP1_TXADDR, 3);
could someone help me with this problem ?