avaldebe / PowerLogger

DIY multi-channel voltage/current data logger
MIT License
14 stars 3 forks source link

update STM32 platform #2

Open avaldebe opened 3 years ago

avaldebe commented 3 years ago

I had not worked on this project for some time and now the STM32f103c8/b environments fail to compile. This is related to the old platform option

https://github.com/avaldebe/PowerLogger/blob/e5bd2d1022ef1fd6405ec642546fa1445941923b/platformio.ini#L41-L45

This version of the platform refers to the Arduino STM32 core by Roger Clark. Newer versions of the core refer to the STM32duino by ST.

If I remember correctly, I took that version to prevent this issue platformio/platform-ststm32#231. From the comments, this issue might be avoided by setting board = genericSTM32F103C8.

Using the stm32duino core requires the stm32duino/STM32duino RTC library.