Skip to content

Commit

Permalink
Leave the LSI ON.
Browse files Browse the repository at this point in the history
On testing the SSBL in 2024 on the same board that development was done
on there were issues with it returning HAL_TIMEOUT from
HAL_RCC_OscConfig.

When this happened there were no LED error codes as this code runs
before the LED is initialized.
  • Loading branch information
hydra committed Mar 13, 2024
1 parent 39f3f74 commit ee25b16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ void SystemClock_Config(void)
*/
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSI|RCC_OSCILLATORTYPE_HSE;
RCC_OscInitStruct.HSEState = RCC_HSE_ON; // RCC_HSE_BYPASS ?
RCC_OscInitStruct.LSIState = RCC_LSI_OFF;
RCC_OscInitStruct.LSIState = RCC_LSI_ON;
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
RCC_OscInitStruct.PLL.PLLM = 4;
Expand Down

0 comments on commit ee25b16

Please sign in to comment.