khoih-prog / STM32_TimerInterrupt

This library enables you to use Interrupt from Hardware Timers on an STM32F/L/H/G/WB/MP1-based board. These STM32F/L/H/G/WB/MP1 Hardware Timers, using Interrupt, still work even if other functions are blocking. Moreover, they are much more precise (certainly depending on clock frequency accuracy) than other software timers using millis() or micros(). That's mandatory if you need to measure some data requiring better accuracy. It now supports 16 ISR-based Timers, while consuming only 1 Hardware Timer. Timers' interval is very long (ulong millisecs). The most important feature is they're ISR-based Timers. Therefore, their executions are not blocked by bad-behaving functions or tasks. This important feature is absolutely necessary for mission-critical tasks.
MIT License
32 stars 7 forks source link

Error including library #1

Closed nflaum closed 4 years ago

nflaum commented 4 years ago

Hello, when I run the code below I get the following error:

WARNING: library STM32_TimerInterrupt claims to run on stm32 architecture(s) and may be incompatible with your current board which runs on STM32F1 architecture(s).

error: #error This code is designed to run on STM32F/L/H/G/WB/MP1 platform! Please check your Tools->Board setting.

#include <STM32TimerInterrupt.h>
#include <STM32_ISR_Timer.h>

void setup() {
}

void loop() {
}

image

khoih-prog commented 4 years ago

The Roger Clark's STM32 core you're using is not currently supported. I don't know in the future if I can add that core into the supported list.

You have to use this Arduino_Core_STM32.

Convert to new core by following the intructions in Getting Started

nflaum commented 4 years ago

Thanks