khoih-prog / RPI_PICO_TimerInterrupt

This library enables you to use Interrupt from Hardware Timers on RP2040-based boards such as RASPBERRY_PI_PICO. These RPI_PICO_TimerInterrupt 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 15 forks source link

Wrong Board selected in Arduino #1

Closed LeSuedois closed 2 years ago

LeSuedois commented 2 years ago

Hello, I tried to use your library but even the examples don't compile. It says the wrong board is selected.. I use Arduino 1.8.19 on os x 12.2.1, core and library with arduino library manager, all up to date. RPi pico is selected in the board manager and I use RP2040 since a while with success. /Users/simonjuif/Documents/Arduino/libraries/MBED_RPI_PICO_TimerInterrupt/src/MBED_RPi_Pico_TimerInterrupt.hpp:47:4: error: #error This code is intended to run on the MBED RASPBERRY_PI_PICO platform! Please check your Tools->Board setting. 47 | #error This code is intended to run on the MBED RASPBERRY_PI_PICO platform! Please check your Tools->Board setting. | ^~~~~ exit status 1

Thank you, Simon

khoih-prog commented 2 years ago

Hi,

With the careless post to the wrong library, you'd have more problem in the future, especially while using hardware interrupt. Be much more careful in the future.

#error This code is intended to run on the MBED RASPBERRY_PI_PICO platform! Please check your Tools->Board setting

The MBED_RPI_PICO_TimerInterrupt is designed for RP2040 using ArduinoCore-mbed core

While this library is designed for arduino-pico core

Retry using the correct core for the library by at least reading Prerequisites.

Good Luck,