Bare Metal STM32L496
void SystemClock_Config(void) { // Step 1: Enable HSI RCC->CR |= RCC_CR_HSION; // Enable HSI while (!(RCC->CR & RCC_CR_HSIRDY)); // Wait until HSI is ready // Step 2: Configure the voltage scaling PWR->CR1 |= PWR_CR1_VOS_0; // Set voltage scale to 1...