5 years, 4 months ago.

I am getting the error seen below, what does it mean?

Error: No instance of overloaded function "mbed::InterruptIn::rise" matches the argument list in "main.cpp", Line: 44, Col: 19

Question relating to:

As others below indicated, please share line 44

posted by Martin Kojtal 24 Jul 2014
Comment on this question

2 Answers

5 years, 4 months ago.

If you are using pins 19 or 20. Then no interrupt

Please show your code. More people help

This is a code snippet

  1. include "mbed.h"

...

InterruptIn lightning(p25);

...

int main() {

...

lightning.rise(&strike);

The lightning.rise(... statement is like the example in the InterruptIn section of the Handbook. When I compile the example code, there are NO errors. There is also only one prototype shown when I mouse over the rise function. In my code, there are seven prototypes for the rise function.

I also want to disable interrupts, but find no instructions to do that (so far).

posted by Douglas Datwyler 24 Jul 2014

Forgot the short interrupt handler:

int strike(void) { lightning.disable_irq();

int strike_flag = 1;

lightning.enable_irq();

return strike_flag; }

posted by Douglas Datwyler 24 Jul 2014
5 years, 4 months ago.

You are probably using the rise function with the wrong arguments.


You need to log in to post a question