STM32F103C8T6 Deep Sleep Mode Library

Post here first, or if you can't find a relevant section!
Post Reply
ardunocuqpw
Posts: 6
Joined: Tue May 17, 2022 11:15 am

STM32F103C8T6 Deep Sleep Mode Library

Post by ardunocuqpw »

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.
by GonzoG » Wed May 18, 2022 7:32 pm
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 post
User avatar
fpiSTM
Posts: 1738
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: STM32F103C8T6 Deep Sleep Mode Library

Post by fpiSTM »

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.
ardunocuqpw
Posts: 6
Joined: Tue May 17, 2022 11:15 am

Re: STM32F103C8T6 Deep Sleep Mode Library

Post by ardunocuqpw »

So, what can ı do?
GonzoG
Posts: 403
Joined: Wed Jan 15, 2020 11:30 am
Answers: 27
Location: Prudnik, Poland

Re: STM32F103C8T6 Deep Sleep Mode Library

Post by GonzoG »

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
Post Reply

Return to “General discussion”