Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. Cannot compile sketch with STM32F1 BluePill board

Cannot compile sketch with STM32F1 BluePill board

Scheduled Pinned Locked Moved Troubleshooting
5 Posts 3 Posters 49 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tnick
    wrote on last edited by
    #1

    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?

    mfalkviddM 1 Reply Last reply
    0
    • T tnick

      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?

      mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      @tnick which version of MySensors are you using?

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

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tnick
        wrote on last edited by
        #3

        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 ?

        mfalkviddM 1 Reply Last reply
        1
        • T tnick

          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 ?

          mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #4

          @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.

          1 Reply Last reply
          0
          • dirkjuD Offline
            dirkjuD Offline
            dirkju
            wrote on last edited by
            #5

            @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 ;-))

            1 Reply Last reply
            1
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            21

            Online

            11.7k

            Users

            11.2k

            Topics

            113.1k

            Posts


            Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • MySensors
            • OpenHardware.io
            • Categories
            • Recent
            • Tags
            • Popular