Closed nbars closed 4 years ago
Hi,
I've tested with Arduino IDE to build the AlarmTimedWakeup example for the blue pill with:
And it build fine.
"C:\STM32\arduino\arduino-1.8.13\portable\packages\STM32\tools\xpack-arm-none-eabi-gcc\9.2.1-1.1/bin/arm-none-eabi-size" -A "C:\Users\frq92243\AppData\Local\Temp\arduino_build_667049/AlarmTimedWakeup.ino.elf" Sketch uses 27712 bytes (42%) of program storage space. Maximum is 65536 bytes. Global variables use 1252 bytes (6%) of dynamic memory, leaving 19228 bytes for local variables. Maximum is 20480 bytes.
Unfortunately we support only Arduino IDE not PIO. Anyway I'm surprised that you set the @1.1.0 for LP library as it is not officially released, only available at master. To manage dependencies each libraries check version so maybe an issue in pio env to find them anyway I'm surprised as this is defining in the include.
I guess that PIO is using a different version numbering scheme than you are. At least, version 1.1.0 ist the default given on the example page of PIO.
I will try to get in touch with the PIO maintainer of STM32duinoLowPower
, maybe he knows any solution.
Ok. In the exemple of installation 1.1.0 is used for illustration. But if you check the version you will see it ends to 1.0.0
I guess that PIO is using a different version numbering scheme than you are. At least, version 1.1.0 ist the default given on the example page of PIO. I will try to get in touch with the PIO maintainer of
STM32duinoLowPower
, maybe he knows any solution.
how do you slove it at last?
I guess that PIO is using a different version numbering scheme than you are. At least, version 1.1.0 ist the default given on the example page of PIO. I will try to get in touch with the PIO maintainer of
STM32duinoLowPower
, maybe he knows any solution.
OK I find the solution, the reason is the stm32 Core version is v1.9.0. but in the library Low Power there are some definitions in the head of the files, they are wrong. eg: in low_power.c
#if defined(STM32_CORE_VERSION) && (STM32_CORE_VERSION > 0x01090000) &&\
defined(HAL_PWR_MODULE_ENABLED) && !defined(HAL_PWR_MODULE_ONLY)
change the > to >=
then it will be ok, also change it in the STM32LowPower.h low_power.h
Ok. In the exemple of installation 1.1.0 is used for illustration. But if you check the version you will see it ends to 1.0.0
See my solution
Just my 2 cents, I guess PIO automatically update the library version in its env based on library.properties while they should use the official tag like Arduino.
@KiraVerSace I guess you should install the specific version as mentioned in installation tabs on PIO library usage:
# The exact version
stm32duino/STM32duino Low Power @ 1.0.3
I close this issue as it it is linked to PIO usage.
Changed my platformio.ini file to reflect the correct version and it works perfectly.
stm32duino/STM32duino Low Power @ 1.0.3
Hello, thank you for providing us with the library. Unfortunately,
STM32duino Low Power@1.1.0
fails to build using the following configuration:Error message:
Am I doing something wrong, or is there any further info I can provide?