Skip to main content
EPham.1
Visitor II
November 6, 2021
Question

How to include Arduino.h in STM32CubeIDE?

  • November 6, 2021
  • 0 replies
  • 1129 views

I know this is generally not a kosher move, but I would like to use STM32CubeIDE as well as the Arduino library on one MCU. I need to configure the MCU on a Blue Pill (STM32F103C8) to be an SPI slave. I could not figure out how to get this done in VS Code, but CubeIDE has it working. However, I also need to use the Roboclaw c++ library which relies on Arduino.h to manage serial communications. I do not want to rewrite the Roboclaw library, but cannot find any resources for using the Arduino library on STM32CubeIDE. Has this been done before? Does anyone here have any ideas?

This topic has been closed for replies.