2022-11-16 09:07 AM
USBD_CUSTOM_HID_SendReport(...) returns USBD_OK but nothing being send when code is generated with firmware version 1.12.1, but this function works without any problem in firmware 1.12.0
2022-11-17 10:34 AM
2022-11-17 11:19 AM
Post1 seems to be the solution. I confirm that version 1.12.0 that works correctly uses HAL_PCD_EP_Transmit(...) and the version 1.12.1 that does not work uses HAL_PCD_EP_DB_Transmit (...).
2022-11-28 12:54 AM
Hi @HAHA ,
In the release note of STM32CubeL0 version 1.12.1, there is this message:
HAL USB_FS update
HAL PCD: add fix transfer complete for IN Interrupt transaction in single buffer mode.
For customHID user should not use HAL_PCD_EP_DB_Transmit this is specific for ISO and bulk transfers not Interrupt.
I escalated your feedback internally for check within an Internal ticket number: 139848.
(PS: This tracking number (139848) is only for reference and is not accessible or usable by customers).
When your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.
Imen
2022-11-28 05:02 AM
Hi @HAHA,
Can you please confirm that the issue is reproduced when the code generation is with STM32CubeMX, or only when using HAL USB?
Imen
2022-11-30 06:06 AM
Hi Imen,
the issue is reproduced when the code is generated with STM32CubeMX.
HA.
2022-11-30 06:20 AM
Hi @HAHA ,
Thanks for this detail.
So, the issue is with STM32CubeMx. I will escalate this to the appropriate team.
Thanks
Imen
2022-12-16 09:50 AM
Hi @HAHA ,
Can you please share your ioc file to check this issue in your project.
Imen
2023-01-09 11:06 AM
Hello @HAHA,
This issue is not reproduced on side CubeMx team.
Could you please provide the project (ioc file) to check this behavior.
Imen
2023-01-10 08:29 AM
Hi Imen,
sorry for the delay, attached please find the whole sample project that shows the problem. The application is supposed to send an "a" as a keyboard stroke on startup. If you change the firmware to revision 1.12.0 this application works as it should.
let me know if you have any questions.
H.