Hi everyone, ı want to use deep sleep mode on my stm32f103c8t6. I have two library but it gives error, ı can't compile it. How can ı put to sleep my stm32? Does it need library? If ı don't need library how can ı do this? Thanks for your help.
My Errors:
Using: C:\Users\ufukc\Documents\Arduino\libraries\STM32LowPower-main
In file included from C:\Users\ufukc\Documents\Arduino\libraries\STM32LowPower-main\src\low_power.c:22:0:
Not used: C:\Users\ufukc\Documents\Arduino\libraries\STM32duino_Low_Power
C:\Users\ufukc\Documents\Arduino\libraries\STM32LowPower-main\src\low_power.h:41:23: fatal error: stm32_def.h: No such file or directory
#include "stm32_def.h"
^
compilation terminated.
exit status 1
Compilation error for generic STM32F103C6/fake STM32F103C8 board.
STM32F103C8T6 Deep Sleep Mode Library
-
- Posts: 6
- Joined: Tue May 17, 2022 11:15 am
STM32F103C8T6 Deep Sleep Mode Library
You have to use registers to set MCU into sleep modes:
eg. in this thread: viewtopic.php?f=63&t=464
or switch to official STM32 core
Go to full posteg. in this thread: viewtopic.php?f=63&t=464
or switch to official STM32 core
Re: STM32F103C8T6 Deep Sleep Mode Library
The STM32LowPower is for the STM32 core but you used Roger's core that's why you got this error as it is not compatible.
-
- Posts: 6
- Joined: Tue May 17, 2022 11:15 am
Re: STM32F103C8T6 Deep Sleep Mode Library
So, what can ı do?
Re: STM32F103C8T6 Deep Sleep Mode Library
You have to use registers to set MCU into sleep modes:
eg. in this thread: viewtopic.php?f=63&t=464
or switch to official STM32 core
eg. in this thread: viewtopic.php?f=63&t=464
or switch to official STM32 core