Cannot compile sketch with STM32F1 BluePill board



  • I am trying to compile a sketch with mysensors library for a generic STM32F1 BluePill C8 board.
    Arduino IDE throughs me following error: "\Arduino\Sketches\libraries\MySensors/MySensors.h:84:2: error: #error Hardware abstraction not defined (unsupported platform)"
    I have installed the STM32 board definitions from ST.
    Defined board: "Generic STM32F1 series" in the Arduino IDE.
    To my knowledge should the mysensors library work with STM32F1 boards.
    Any idea where the problem could be?


  • Mod

    @tnick which version of MySensors are you using?

    Are you using the correct board definitions? STM32F1 2019.12.8 (stm32duino)



  • I am using the lastest version of the board definition "Arduino Core for STM32 2.10.1". Do I have to use the older 2019.12.8 definitions ?


  • Mod

    @tnick STM32F1 2019.12.8 (stm32duino) is the version that was active when the latest MySensors release was made. Later versions may or may not work; nobody would know until they tried.



  • @tnick I know this is an old post, but if it helps you - I've created support for STM32 based on latest STM32duino here. It's currently made to be backward compatible for the existing STM32F1 support, which is what you are struggling. But with a small change you can use the new STM32 HAL support. Let me know if you are interested to give it a try.
    The longer term plan is to remove the existing (old) STM32F1 support in favor of the new and more general STM32 support. (If @mfalkvidd agrees ;-))


Log in to reply
 

Suggested Topics

  • 3
  • 9
  • 12
  • 4
  • 34
  • 2

28
Online

11.6k
Users

11.2k
Topics

113.0k
Posts