I have problem compiling project fot STM32 (stm32duino). It does not pickup platform libraries like RTClock or libmaple.
In the source file I have
…
#include <RTClock.h>
RTClock rt(RTCSEL_LSE); // initialise
…
But when I build I get:
Processing bluepill_f103c8 (platform: ststm32; board: bluepill_f103c8; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via -v, --verbose
option
CONFIGURATION: Redirecting...
PLATFORM: ST STM32 > BluePill F103C8
HARDWARE: STM32F103C8T6 72MHz 20KB RAM (64KB Flash)
DEBUG: CURRENT(stlink) EXTERNAL(blackmagic, jlink, stlink)
Library Dependency Finder → Library Dependency Finder (LDF) — PlatformIO latest documentation
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 22 compatible libraries
Scanning dependencies…
Dependency Graph
|-- 1.3.6
| |-- 1.0
|-- 1.2.0
| |-- 1.3.6
| | |-- 1.0
| |-- 1.0
|-- 1.5
|--
|-- 2.52
|-- 1.0
Compiling .pioenvs/bluepill_f103c8/src/main.cpp.o
Compiling .pioenvs/bluepill_f103c8/libbc2/SPI/SPI.cpp.o
src/main.cpp:65:10: fatal error: RTClock.h: No such file or directory
But… this is file is actually present in STM32 platform libs
ls -1 /home/oskar/.platformio/packages/framework-arduinoststm32/STM32F1/libraries/RTClock/src/
RTClock.cpp
RTClock.h
utility
I tried to copy it to private lib directory, but then it complains about missing libmaple etc…
What can I do to fix this problem?