IRQ Handlers with LL drivers
I generally prefer the STM Low Level drives and chose that driver family for most peripheral in CubeMX Project Manager->Advanced Settings->Driver Selector. There seem to be one disadvantage: the IRQHandlers are not generated as weak which I think happens with the CubeMX generated HAL IRQHandlers. So with the LL drivers, I have to add a line of code to the CubeMX generated stm32h7xx_it.c file. Like this:
void USART1_IRQHandler(void)
{
/* USER CODE BEGIN USART1_IRQn 0 */
myUSART1_IRQHandler();
/* USER CODE END USART1_IRQn 0 */
/* USER CODE BEGIN USART1_IRQn 1 */
/* USER CODE END USART1_IRQn 1 */
}
Is there a way to tell CubeMX to generate the IRQHandler stubs as weak?
And what does the CubeMX Project Manager->Advanced Settings->Register CallBack disable/enable setting do? I've generated code with this enabled and disabled and don't see any obvious difference.
Thanks
