-
Notifications
You must be signed in to change notification settings - Fork 55
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
error compile when define ISR routine for external interrrupt #66
Comments
Which board are you using I've added the #ifdef EXTERNAL_INTERRUPT
ISR(INT1_vect) {
CounterControl::GATE_ISR();
};
void CounterControl::GATE_ISR() {
}
#endif
void setup()
{
}
void loop()
{
} |
i don't use atmega 2560
here is board config {
"optibootPro16MHzatmega328": {
"build": {
"core": "arduino",
"extra_flags": "-DARDUINO_ARCH_AVR -DARDUINO_AVR_PRO",
"f_cpu": "16000000L",
"mcu": "atmega328p",
"variant": "eightanaloginputs"
},
"frameworks": ["arduino"],
"name": "Arduino Pro Mini Optiboot ATmega328 (5V, 16 MHz)",
"platform": "atmelavr",
"upload": {
"disable_flushing": true,
"maximum_ram_size": 2048,
"maximum_size": 32256,
"protocol": "arduino",
"require_upload_port" : true,
"speed": 115200
},
"url": "http://arduino.cc/en/Main/ArduinoBoardProMini",
"vendor": "Arduino"
}
} |
Remove package, delete all files and reinstall deviot with platformio 3.0.1. I have same problem. L.E.
|
Solved! L.E. Pfuffff! Now i found real problem. Because i use RCSwitch library witch work on external interrupt pin, obviously here are some implementation for ISR routine. When i try to re-implement same routine i got error. Everything compile fine if remove RCSwitch library. So it's an conflict with that library. |
Good to hear! As recommendation, I realized your JSON file hasn't the right format, in PlatformIO 3 it should be like this: {
"build": {
"core": "arduino",
"extra_flags": "-DARDUINO_ARCH_AVR -DARDUINO_AVR_PRO",
"f_cpu": "16000000L",
"mcu": "atmega328p",
"variant": "eightanaloginputs"
},
"frameworks": ["arduino"],
"name": "Arduino Pro Mini Optiboot ATmega328 (5V, 16 MHz)",
"platform": "atmelavr",
"upload": {
"disable_flushing": true,
"maximum_ram_size": 2048,
"maximum_size": 32256,
"protocol": "arduino",
"require_upload_port" : true,
"speed": 115200
},
"url": "http://arduino.cc/en/Main/ArduinoBoardProMini",
"vendor": "Arduino"
} Rename the json file as: |
Yes, is truth! After i make update i see that not working with old json and need to do exactly what u say (after many try's). Maybe is better to make an update to this threat to help and other users. |
I got an error when i try to implement in ISR for external interrupt:
Here is implementation
The text was updated successfully, but these errors were encountered: