The simplest and most basic LL driver App doesn't work
We tried the simplest and the most basic LL driver based App, LED blinking, on Nucleo boards:
int main(void)
{
LL_APB2_GRP1_EnableClock(LL_APB2_GRP1_PERIPH_SYSCFG);
LL_APB1_GRP1_EnableClock(LL_APB1_GRP1_PERIPH_PWR);
NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
SystemClock_Config();
MX_GPIO_Init();
MX_USART2_UART_Init();
while (1)
{
LL_GPIO_TogglePin(LD3_GPIO_Port, LD3_Pin);
LL_mDelay(1000);
}
}Comments and empty lines are removed. We just added two lines of code in the while loop. Everything else is from MX. (LED pin changes with different Nucleo boards).
Well, it doesn't work. It failed on Nucleo-L432KC and Nucleo-L452RE. Both are L4 MCU so they use the same FW and library. It can't pass through the system clock configuration. The MCO output of the internal PLL has no life at all.
However, it works on Nucleo-WB55RG. The LED is blinking!
Is there anything I missed in LL based programming? or is there anything to fix for L4 firmware and library?
Thanks. -wq
