__weak requirement on stm32f4xx_hal_pcd.h functions
I have default setup under linux with CubeIDE 1.7.0 and for overriding, i had to modify as
__weak void HAL_PCD_ConnectCallback(PCD_HandleTypeDef *hpcd);
__weak void HAL_PCD_DisconnectCallback(PCD_HandleTypeDef *hpcd);
oh header definitions. Otherwise it complains about multiple definitions despite .c weak implementations. It might be related to gcc logic. These functions are said to be USB related.
Am i missing a point? Header files requires weak definitions. Update if necessary.