2.4 Compile error

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
Johninarky
Posts: 15
Joined: Sat Jul 05, 2014 9:44 pm
Location: Rogers,Arkansas USA

2.4 Compile error

Post by Johninarky »

In trying to compile the latest Ver.2.4 with Arduino, I get an
error: BUZZERPIN_OFF was not declared in this scope.
This shows up in alamrms.cpp
void turnOff(uint8_t resource){
if (resource == 1) {
if (resourceIsOn[1]) {
BUZZERPIN_OFF;
resourceIsOn[1] = 0;
}
This error occurs whether BUZZER is defined or not.
I am using a RTFQ Black EZ3.0
I configured config.h exactly like my 2.3 version which flies great.

EDIT: I compiled this with Arduino 1.6.1, the latest. I went back and compiled my old MW2.3 and it gave the same error
message. Arduino 1.5 worked just fine with 2.3.
John

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: 2.4 Compile error

Post by Hamburger »

please use a compressor like zip and upload your config.h

Johninarky
Posts: 15
Joined: Sat Jul 05, 2014 9:44 pm
Location: Rogers,Arkansas USA

Re: 2.4 Compile error

Post by Johninarky »

Here is the file. No other files were changed. I think the problem lies with the Arduino which may
have some files that somehow conflict. I tried to go back and compile with 1.5 Version, but it was
over written when I installed the 1.6 Ver. Other files were added for a teensy duino also.
John
Attachments
config.zip
(21.1 KiB) Downloaded 144 times

Johninarky
Posts: 15
Joined: Sat Jul 05, 2014 9:44 pm
Location: Rogers,Arkansas USA

Re: 2.4 Compile error

Post by Johninarky »

Well, I don't understand it, but the solution was to compile with the old Arduino 1.3 Ver. Versions 1.5, 1.5.6,1.61
all gave various errors and wouldn't verify or of course upload. The Multiwii win gui doesn't work, but 2.4 Config does.
John

User avatar
jaysonragasa
Posts: 53
Joined: Wed Jan 28, 2015 6:40 am
Location: Philippines
Contact:

Re: 2.4 Compile error

Post by jaysonragasa »

I am building my MultiWii version 2.3 and 2.4 in Arduino 1.01, works fine.
I moved to the latest version 1.6.1 and it worked as well.
I am now doing everything in Visual Studio 2013 which works pretty great.

Let me check your config.h and see how I can help

User avatar
jaysonragasa
Posts: 53
Joined: Wed Jan 28, 2015 6:40 am
Location: Philippines
Contact:

Re: 2.4 Compile error

Post by jaysonragasa »

I tried your config.h on an untouched MW2.4 and it compiled without a problem.
I used Arduino 1.6.1
Image
Attachments
2015-03-27_2137.png
(4.46 KiB) Not downloaded yet

Johninarky
Posts: 15
Joined: Sat Jul 05, 2014 9:44 pm
Location: Rogers,Arkansas USA

Re: 2.4 Compile error

Post by Johninarky »

Thanks Jayson
I did as you did, downloaded another copy of 2.4.
Installed a new copy of Arduino 1.6.1, this time leaving out some of the options ie: associate ino files.
This time it compiled just fine. Again, can't explain it, but thanks for urging me to try again.

Post Reply