-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Compilation error #2746
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The sketch does not compile:
please post the full sketch, what is the expected result and what you actually get. |
Hello,
The full sketch in enclosed files. Main is alarm8.ino, all to be in alarm8 directory You will need libraries: DS1307new, EEPROMEx, Keypad, PN532, PN532_HSU, SerialCommand SerialCommand : you need to edit SerialCommand.h, change to have #define MAXSERIALCOMMANDS 16
will not be easy for you to see result. This code for a MEGA2560 board running a house alarm system with some devices connected : PIR and Hall sensors, LCD, Keypad and RFID readers. The code manage to be configurable: define constant READER to setup 1 to 3 connected RFID readers to serial 1 to 3, depending what is installed ( see CUSTOMISATION AREA in alarm8.ino). So, depending this constant, with #if READER directives in alarm_rfid.ino, we compile to drive 1 or 2 or 3 RFID readers
with IDE1.5.5, al works fine. with higher IDE, code compile without errors, but result is shorter, and at the end doesn't run properly, RFID readers doesn't work, code stop.
Regards
[exec] sketch_mar11a.ino:5:14: error: 'READER' was not declared in this scope
—
|
I cannot see any file, I guess that github filtered all the attachments. Before going further, maybe you want to check if the compiler is getting the May you try to manually change the ifdefs to |
Yes, looks like attachements filtered.
|
@tailleurp the reduced size of the sketch can be an effect of the updated compiler bundled with the IDE (1.5.5 shipped gcc 4.3.2, 1.6.1 ships version 4.8.1) As for the #if you may want to give a spin to the IDE downloadable here #2729 (bottom of the page) |
also, thanks for your report ;) |
@tailleurp if you prefer, you can put your sketch code on gist: https://gist.github.com/. It's a tool for sharing source code, perfect for your case |
Hello,
here it is https://gist.github.com/tailleurp/8744af7bf672c86e4e35
Regards
—
|
Fixed by #3779 |
Compiled code truncated, starting IDE > 1.5.5. as result, execution fails.
IDE 1.5.5 : Le croquis utilise 48 838 octets (18%) de l'espace de stockage de programmes.Le maximum est de 258 048 octets.
Les variables globales utilisent 4 014 octets (48%) de mémoire dynamique, ce qui laisse 4 178 octets pour les variables locales. Le maximum est de 8 192 octets.
IDE >1.5.5 (1.6.1) : Le croquis utilise 44 690 octets (17%) de l'espace de stockage de programmes.Le maximum est de 253 952 octets.
Les variables globales utilisent 3 770 octets (46%) de mémoire dynamique, ce qui laisse 4 422 octets pour les variables locales. Le maximum est de 8 192 octets.
Possible issue : repeated #if clause in single code ignored
Sample code
The text was updated successfully, but these errors were encountered: