Huge issue including libmaple in my project

Hi, really pulling my hair here. I'm trying to build DCS-BIOS for STM32. It works fine initially, I can compile a simple sketch that blinks PC13 in sync with the Master Caution light in the airplane, using USB.

The problem appears when I try to build for RS485 instead of USB. This seems to be supported by DCS-BIOS for STM32, however it's trying to include <libmaple/usart.h> in DcsBiosNgRS485Slave.h:9. I have probably tried a million ways of installing libmaple, including as a folder in Documents/Libraries/libmaple, and a libraries subfolder in the sketch.

The usart.h file is there, but the Arduino IDE 2.0.4 still can't find it. Is the problem that it's the DCS-BIOS library that is trying to include the file, and not my sketch?

Where should I put libmaple please?

Obviously I figured it out a minute after posting, however now there is a different issue. I'm getting the following error now:

/Users/maciekish/Documents/Arduino/libraries/dcs-bios-0.3.8/src/libmaple/stm32.h:102:2: error: #error "No STM32 board type defined!"
  102 | #error "No STM32 board type defined!"
      |  ^~~~~
/Users/maciekish/Documents/Arduino/libraries/dcs-bios-0.3.8/src/libmaple/stm32.h:154:2: error: #error "No MCU type specified. Add something like -DMCU_STM32F103RB " "to your compiler arguments (probably in a Makefile)."
  154 | #error "No MCU type specified. Add something like -DMCU_STM32F103RB "   \
      |  ^~~~~

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.