New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PCD Connect and Disconnect callbacks are not called anywhere in the code #51
Comments
Hi @fronders, Would you mind double-checking this point please? Below code snippets show that both callbacks are defined in stm32wbxx_hal_pcd.c since version 1.13.0 of the STM32CubeWB firmware. With regards, STM32CubeWB/Drivers/STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_pcd.c Lines 148 to 149 in 398d0fb
STM32CubeWB/Drivers/STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_pcd.c Lines 1295 to 1303 in 398d0fb
STM32CubeWB/Drivers/STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_pcd.c Lines 1310 to 1318 in 398d0fb
|
Hello @ALABSTM! Yes, these functions are assigned to In contrast STM32CubeWB/Drivers/STM32WBxx_HAL_Driver/Src/stm32wbxx_hal_pcd.c Lines 1065 to 1069 in 398d0fb
So my question is still the same - what is the point of these functions then? Regards |
Hi @fronders, Actually, both callbacks you pointed out are redefined at application level, as you can see from the code snippet below. The fact is that, in the case of the I hope this answers your question. With regards, Lines 355 to 388 in 398d0fb
|
Yeah, I saw they are redefined at application level - that's exactly what my initial post mentions. But still these callbacks never get called anywhere.
Thanks, that is what I was looking for. Would've been nice if it would have been mentioned somewhere in the sources. |
Describe the set-up
Describe the bug
Generated code in usbd_conf.c contains
HAL_PCD_ConnectCallback()
andHAL_PCD_DisconnectCallback()
:But these callbacks are not called anywhere in stm32wbxx_hal_pcd. This is same independent of selected USB Device Class. However other callbacks like
HAL_PCD_ResumeCallback()
are called and executed. Is this a bug, or what if the point of these functions then?The text was updated successfully, but these errors were encountered: