stm32f7xx_hal_driver
stm32f7xx_hal_driver copied to clipboard
HAL_PCD_SetTestMode() doesn't clear register bits before setting them
Describe the set-up
- STM32F723
- IDE 1.14.1, HAL 1.3.1
Describe the bug Inspection of the code for HAL_PCD_SetTestMode() shows that the RW bits for TCTL in the OTG_DCTL register are not cleared before setting them. This function will work on the first usage but future changes to test mode will garble the bits.
For completeness there should probably also be a define for test mode disabled (0U).