rogerclarkmelbourne / Arduino_STM32

Arduino STM32. Hardware files to support STM32 boards, on Arduino IDE 1.8.x including LeafLabs Maple and other generic STM32F103 boards
Other
2.5k stars 1.26k forks source link

RTClock.h: No such file or directory #845

Closed nesergen closed 3 years ago

nesergen commented 3 years ago

I am trying to compile the BluePill-RTClock-test sketch for stm32f103. But I get an error.

Alternatives for RTClock.h: []
ResolveLibrary(RTClock.h)
  -> candidates: []
BluePill-RTClock-test:27:10: fatal error: RTClock.h: No such file or directory
   27 | #include <RTClock.h>
      |          ^~~~~~~~~~~
compilation terminated.
exit status 1
RTClock.h: No such file or directory

What could be the problem?

stevstrong commented 3 years ago

Which version of Arduino IDE are you using? Which board have you selected? Which upload method?

nesergen commented 3 years ago

Which version of Arduino IDE are you using?

IDE 1.8.14

Which board have you selected?

Generic STM32F1 series -> BluePill F103C8

Which upload method?

Maple DFU Bootloader 2.0.

I am not trying to upload a sketch to the board, just checking that the code is correct. I have already successfully uploaded sketches to this board and they worked fine. But some libraries refuse to work.

stevstrong commented 3 years ago

Well, I tried and the same example works for me, no error message, that is why I asked those questions. Btw, there is no BluepilF103 selection option for this core, maybe you have used the official STM core? Please post an image of the board selection options of Arduino.

nesergen commented 3 years ago

oh, you're right. I installed the stm32duino / Arduino_Core_STM32 version. The presence of different branches and libraries confuses me. It is a pity that the versions have a library incompatibility. Is it possible to install your version in parallel?

stevstrong commented 3 years ago

Yes, it is possible to use both cores. You only have to pay attention which board you select, with that selection you also select the underlying core (show in the top of the board lists).