Comments (2)
hi @rreicher,
yes it is planned to support low power (current target is week 43).
For MSI, since this commit:
c05a26e
you are able to define your own SystemClock_Config in the sketch.
For ex you could add something like that in your skectch (get from l432):
void SystemClock_Config(void)
{
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
/* MSI is enabled after System reset, activate PLL with MSI as source /
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_MSI;
RCC_OscInitStruct.MSIState = RCC_MSI_ON;
RCC_OscInitStruct.MSIClockRange = RCC_MSIRANGE_6;
RCC_OscInitStruct.MSICalibrationValue = RCC_MSICALIBRATION_DEFAULT;
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_MSI;
RCC_OscInitStruct.PLL.PLLM = 1;
RCC_OscInitStruct.PLL.PLLN = 40;
RCC_OscInitStruct.PLL.PLLR = 2;
RCC_OscInitStruct.PLL.PLLP = 7;
RCC_OscInitStruct.PLL.PLLQ = 4;
if(HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
{
/ Initialization Error */
while(1);
}
/* Select PLL as system clock source and configure the HCLK, PCLK1 and PCLK2
clocks dividers /
RCC_ClkInitStruct.ClockType = (RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2);
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1;
RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
if(HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_4) != HAL_OK)
{
/ Initialization Error */
while(1);
}
}
from arduino_core_stm32.
Answered.
Close.
from arduino_core_stm32.
Related Issues (20)
- SPI support to other libraries using TRANSMIT ONLY or RECEIVE ONLY HOT 2
- macOS issue on uploading since 2.8.0 HOT 1
- 2.8.0 breaks core reference HOT 6
- Idle pin state in PWM
- It's a unknown error when I compile any example of STM32duino_Low_Power with LTO
- J-Link support when using STM32CubeProgrammer HOT 5
- Message about "Debug is not supported" displayed at the end of the build
- Specify `SERIAL_RX_BUFFER_SIZE` or similar define HOT 2
- Try to use Generic F103ZET6 with BlueVGA third party library HOT 2
- 2.8.1 Update disabled Serial() on Nucleo H503 HOT 4
- Unable to upload blink program, Error: No debug probe detected.
- Wire (I2C) library: support 10 bits address mode HOT 3
- COM port under the Tools menu no longer appeared on V2.8 HOT 2
- Debugging generic STM32L0 missing target/stm32l0x.cfg HOT 1
- Linking issue with FDCAN on STM32G0B1CBTx HOT 1
- LOAD segment with RWX permissions during stm32f411ceu6 flashing on arduinoststm32 @ 4.20801.240802 (2.8.1) HOT 6
- Support for STM32H503CB HOT 2
- STM32H503xx analogWrite() error infinite loop due to ICACHE config HOT 1
- STM32H5 Slower than expected
- STM32F030K6 variant issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino_core_stm32.