[solved] Moteino Mega -> cannot compile 2.2.0 beta
-
Hi,
I cannot compile any sketches:
C:\Users\Alex\Documents\Arduino\libraries\MySensors/drivers/RFM69/old/RFM69_old.h:139:67: error: 'digitalPinToInterrupt' was not declared in this scope uint8_t interruptNum=digitalPinToInterrupt(MY_RFM69_IRQ_PIN)) ^ C:\Users\Alex\Documents\Arduino\libraries\MySensors/drivers/RFM69/old/RFM69_old.h:44:76: error: 'digitalPinToInterrupt' was not declared in this scope #define DEFAULT_RFM69_IRQ_NUM digitalPinToInterrupt(DEFAULT_RFM69_IRQ_PIN) //!< DEFAULT_RFM69_IRQ_NUM ^ C:\Users\Alex\Documents\Arduino\libraries\MySensors/MyConfig.h:894:29: note: in expansion of macro 'DEFAULT_RFM69_IRQ_NUM' #define MY_RFM69_IRQ_NUM DEFAULT_RFM69_IRQ_NUM ^ C:\Users\Alex\Documents\Arduino\libraries\MySensors/hal/transport/MyTransportRFM69.cpp:151:61: note: in expansion of macro 'MY_RFM69_IRQ_NUM' RFM69 _radio(MY_RFM69_CS_PIN, MY_RFM69_IRQ_PIN, MY_RFM69HW, MY_RFM69_IRQ_NUM); ^ Using library MySensors at version 2.2.0-beta in folder: C:\Users\Alex\Documents\Arduino\libraries\MySensors Using library SPI at version 1.0 in folder: C:\Users\Alex\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.18\libraries\SPI exit status 1 Error compiling for board MoteinoMEGA.
@scalz Do you know what the prolem is please?
-
@alexsh1 seems like digitalPinToInterrupt isn't defined by the Moteino Mega board. How did you install support for that board? Maybe there is an update available?
An alternative could be to manually map the pin to interrupt number using the pinout picture at https://lowpowerlab.com/shop/product/119
-
@mfalkvidd Yes, I have it installed and it does compile under 2.1.1 stable. No, there is no update for the board. It seems that it has to be defined manually for now
-
-
it compiles ok for me. I've just tried with latest dev branch..but for the moment i have 1.6.11 avr boards
edit: forget what i said!! i compiled for mega2560 whereas it's moteino, 1284p,.. lol
tekka is right
-
@scalz My avr is 1.6.18 (newest)
I'll pull the latest dev and try again.EDIT: Thanks @tekka - I have corrected pins_arduino.h for Moteino Mega (attached)
Suggested Topics
-
Code for beta-testing?
Controllers • 24 Mar 2014, 20:48 • andriej 9 Aug 2014, 10:44 -
ESP32 + Signing fails after xxx msg as result of memory leak
Bug Reports • 6 Apr 2020, 18:43 • Technovation 7 Mar 2022, 10:37 -
Sensor presentation failure
Bug Reports • 31 Jul 2016, 19:23 • Sergio Rius 3 Mar 2021, 18:48 -
Boards esp8266 v3.1.0 or Newer Doesn't Work with MySensors
Bug Reports • 21 Feb 2023, 01:55 • d-smes 25 Feb 2023, 19:37 -
Making WiFiManager compatible with MySensors 2.3.2
Bug Reports • 12 Feb 2020, 21:43 • pihome 1 Jun 2022, 16:02 -
NRF51-52 PA not support ???
Bug Reports • 23 Feb 2019, 16:40 • berkseo 8 Jul 2021, 11:42