Go Down

Topic: [Eclips Luna]+[Skech 1.5.5r]+[Arduino Eclipse version 2] attachinterrupt() error (Read 99 times) previous topic - next topic


I have tried to compile in the [Eclipse Luna] and using [Arduino Eclipse version V2]
and  [CAN_BUS_Shield > receive_interrupt.ino] .

but, results in error msg !! :

'MCP2515_ISR' was not declared in this scope receive_interrupt.cpp   /receive_interrupt   line 38   C/C++ Problem

Here is capture :

Thank you very much for your answers  :smiley-lol:


Welcome to the forum.
You will need to be more clear with the details you provide.

What Arduino board are you using.
The screen capture is not a good idea, and it is unreadable, please present you code and in
code brackets so it can be seen and include your error messages.

Be sure you have included any necessary libraries in you code, using the #include statement.

When you say ' [Arduino Eclipse version V2] ' I am assuming you mean the Arduino plugin form Eclipse developed by Jantje, is this correct?


to : rockwallaby

Yes you are right.
CAN_BUS_Shield liblary and sample code here : https://github.com/Seeed-Studio/CAN_BUS_Shield

Thank you very much for your answers  :smiley-lol:



I think the compiler is doing a good job and trying to tell you what is wrong.

The Arduino IDE (build) has a pre-processor step that detects functions in the sketch and automatically forward declares them. My guess is that the build you are using does not include this step and the function is (as the compiler rightly informs) unknow at this position in the file.

Simply forward declare the function MCP2515_ISR or move it before the function that attaches it.


Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131