-
Notifications
You must be signed in to change notification settings - Fork 515
Error compiling Firmata for board Arduino Nano Every #436
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
This is because Arduino Nano Every is not yet supported by Firmata. It needs an entry in Boards.h Paste the following code into Boards.h: elif defined(AVR_NANO_EVERY)
#define TOTAL_ANALOG_PINS 8
#define TOTAL_PINS 24 // 14 digital + 8 analog + 2 i2c
#define IS_PIN_DIGITAL(p) ((p) >= 2 && (p) <= 21) // TBD if pins 0 and 1 are usable
#define IS_PIN_ANALOG(p) ((p) >= 14 && (p) < 14 + TOTAL_ANALOG_PINS)
#define IS_PIN_PWM(p) digitalPinHasPWM(p)
#define IS_PIN_SERVO(p) (IS_PIN_DIGITAL(p) && (p) < MAX_SERVOS) // deprecated since v2.4
#define IS_PIN_I2C(p) ((p) == PIN_WIRE_SDA || (p) == PIN_WIRE_SCL) // SDA = 22, SCL = 23
#define IS_PIN_SPI(p) ((p) == SS || (p) == MOSI || (p) == MISO || (p) == SCK)
#define PIN_TO_DIGITAL(p) (p)
#define PIN_TO_ANALOG(p) ((p) - 14)
#define PIN_TO_PWM(p) PIN_TO_DIGITAL(p)
#define PIN_TO_SERVO(p) (p) // deprecated since v2.4 |
Oh, I was not aware that Arduino Nano Every is not yet supported. Is there any roadmap when will it be? I've tried your code, but I receive pretty much the same error. |
Try changing |
Tried yesterday already. Didn't work. |
Today I received Arduino Nano and Arduino Micro where StandardFirmataPlus works so this issue is not on my radar any more. However thanks for the help with Arduino Nano Every. |
One year later, this still seems to be a problem. |
Some info on what's behind the issue here: #464 |
#error "Please edit Boards.h with a hardware abstraction for this board" Can anyone please solve this issue for Arduino Nano 33 BLE Sense? Highly appreciated |
Please create a new issue for this, preferably in the firmata/ConfigurableFirmata repo. It will get more attention there. |
Hey, i just found this issue since I've the same issue for my new Arduino Nano Every Board. The board identifier for the nano is not So after pasting this snippet in #elif defined(ARDUINO_AVR_NANO_EVERY)
#define TOTAL_ANALOG_PINS 8
#define TOTAL_PINS 24 // 14 digital + 8 analog + 2 i2c
#define IS_PIN_DIGITAL(p) ((p) >= 2 && (p) <= 21) // TBD if pins 0 and 1 are usable
#define IS_PIN_ANALOG(p) ((p) >= 14 && (p) < 14 + TOTAL_ANALOG_PINS)
#define IS_PIN_PWM(p) digitalPinHasPWM(p)
#define IS_PIN_SERVO(p) (IS_PIN_DIGITAL(p) && (p) < MAX_SERVOS) // deprecated since v2.4
#define IS_PIN_I2C(p) ((p) == PIN_WIRE_SDA || (p) == PIN_WIRE_SCL) // SDA = 22, SCL = 23
#define IS_PIN_SPI(p) ((p) == SS || (p) == MOSI || (p) == MISO || (p) == SCK)
#define PIN_TO_DIGITAL(p) (p)
#define PIN_TO_ANALOG(p) ((p) - 14)
#define PIN_TO_PWM(p) PIN_TO_DIGITAL(p)
#define PIN_TO_SERVO(p) (p) // deprecated since v2.4 Here is my Boards.h file for everyone who wants to see the exact implementation. |
@michaelzoidl The master version of the repository has been updated to include this fix. If you clone the repository into |
I would like to install StandardFirmataPlus firmware on my Arduino Nano Every (ATMEGA4809) but it fails with some errors which are unknown to me. If I click "Verify" or "Upload" I get this error:
I am on macOS Catalina Version 10.15.1.
I am using Arduino IDE 1.8.10.
In Library Manager is installed Firmata Built-In by Firmata Developers Version 2.5.8
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: