Associate III
September 25, 2017
Question
Bug with STM32L476 PLL source?
- September 25, 2017
- 2 replies
- 546 views
Posted on September 25, 2017 at 03:42
Hi All,
I have been experimenting with my
http://www.st.com/en/evaluation-tools/nucleo-l476rg.html
I have generated some code with CubeMX for SW4STM32 and I am getting some problems with the code, ending up in an Error Handler sometimes (in main):
void _Error_Handler(char * file, int line)
{ /* USER CODE BEGIN Error_Handler_Debug */ /* User can add his own implementation to report the HAL error return state */ while(1) { } /* USER CODE END Error_Handler_Debug */ }This happens when I do the following:
Use the main clock source for the PLL as HSI, and tick the option 'generate peripheral initialization as a pair of '.c/'h' files per peripheral', which I prefer to keep things tidy, in CubeMX.
If I use the MSI instead of the HSI, I don't get this problem.
I am attaching my project for your perusal. Is this a known bug? Or am I missing something?
Thanks!
#pll #nucleo-l476rg #clock #stm32l4 #cubemx #stm32l476