Support for new Arduino Nano Every (ATMEGA4809) planned?
seisfeld opened this issue · 0 comments
seisfeld commented
Hi,
I tried to compile the VccSimple
example on the new Arduino Nano Every (ATMEGA4809) and get the following errors. Are you planning support for this new board?
Thanks
Stephan
with register emulation for ATMEGA328
Arduino: 1.8.9 (Mac OS X), Board: "Arduino Nano Every, ATMEGA328"
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp: In member function 'float Vcc::Read_Volts()':
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:45:7: error: 'ADMUX' was not declared in this scope
if (ADMUX != ADMUX_VCCWRT1V1)
^~~~~
In file included from /Users/stephan/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/io.h:99:0,
from /Users/stephan/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/pgmspace.h:90,
from /Users/stephan/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.1/cores/arduino/api/String.h:30,
from /Users/stephan/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.1/cores/arduino/api/Print.h:24,
from /Users/stephan/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.1/cores/arduino/api/Stream.h:25,
from /Users/stephan/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.1/cores/arduino/api/Client.h:22,
from /Users/stephan/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.1/cores/arduino/api/ArduinoAPI.h:29,
from /Users/stephan/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.1/cores/arduino/Arduino.h:23,
from /Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.h:27,
from /Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:24:
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:38:30: error: 'REFS0' was not declared in this scope
#define ADMUX_VCCWRT1V1 (_BV(REFS0) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1))
^
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:45:16: note: in expansion of macro 'ADMUX_VCCWRT1V1'
if (ADMUX != ADMUX_VCCWRT1V1)
^~~~~~~~~~~~~~~
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:38:30: note: suggested alternative: 'VREF_t'
#define ADMUX_VCCWRT1V1 (_BV(REFS0) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1))
^
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:45:16: note: in expansion of macro 'ADMUX_VCCWRT1V1'
if (ADMUX != ADMUX_VCCWRT1V1)
^~~~~~~~~~~~~~~
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:38:43: error: 'MUX3' was not declared in this scope
#define ADMUX_VCCWRT1V1 (_BV(REFS0) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1))
^
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:45:16: note: in expansion of macro 'ADMUX_VCCWRT1V1'
if (ADMUX != ADMUX_VCCWRT1V1)
^~~~~~~~~~~~~~~
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:38:55: error: 'MUX2' was not declared in this scope
#define ADMUX_VCCWRT1V1 (_BV(REFS0) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1))
^
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:45:16: note: in expansion of macro 'ADMUX_VCCWRT1V1'
if (ADMUX != ADMUX_VCCWRT1V1)
^~~~~~~~~~~~~~~
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:38:67: error: 'MUX1' was not declared in this scope
#define ADMUX_VCCWRT1V1 (_BV(REFS0) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1))
^
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:45:16: note: in expansion of macro 'ADMUX_VCCWRT1V1'
if (ADMUX != ADMUX_VCCWRT1V1)
^~~~~~~~~~~~~~~
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:55:3: error: 'ADCSRA' was not declared in this scope
ADCSRA |= _BV(ADSC);
^~~~~~
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:55:3: note: suggested alternative: 'ADC_t'
ADCSRA |= _BV(ADSC);
^~~~~~
ADC_t
In file included from /Users/stephan/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/io.h:99:0,
from /Users/stephan/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/pgmspace.h:90,
from /Users/stephan/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.1/cores/arduino/api/String.h:30,
from /Users/stephan/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.1/cores/arduino/api/Print.h:24,
from /Users/stephan/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.1/cores/arduino/api/Stream.h:25,
from /Users/stephan/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.1/cores/arduino/api/Client.h:22,
from /Users/stephan/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.1/cores/arduino/api/ArduinoAPI.h:29,
from /Users/stephan/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.1/cores/arduino/Arduino.h:23,
from /Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.h:27,
from /Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:24:
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:55:17: error: 'ADSC' was not declared in this scope
ADCSRA |= _BV(ADSC);
^
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:55:17: note: suggested alternative: 'ADC0'
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:61:28: error: 'ADC' was not declared in this scope
float vcc = 1.1*1024.0 / ADC;
^~~
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:61:28: note: suggested alternative: 'ADC0'
float vcc = 1.1*1024.0 / ADC;
^~~
ADC0
exit status 1
without register emulation for ATMEGA328 (ATMEGA4809)
Arduino: 1.8.9 (Mac OS X), Board: "Arduino Nano Every, None (ATMEGA4809)"
Build-Optionen wurden verändert, alles wird neu kompiliert
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp: In member function 'float Vcc::Read_Volts()':
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:45:7: error: 'ADMUX' was not declared in this scope
if (ADMUX != ADMUX_VCCWRT1V1)
^~~~~
In file included from /Users/stephan/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/io.h:99:0,
from /Users/stephan/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/pgmspace.h:90,
from /Users/stephan/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.1/cores/arduino/api/String.h:30,
from /Users/stephan/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.1/cores/arduino/api/Print.h:24,
from /Users/stephan/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.1/cores/arduino/api/Stream.h:25,
from /Users/stephan/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.1/cores/arduino/api/Client.h:22,
from /Users/stephan/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.1/cores/arduino/api/ArduinoAPI.h:29,
from /Users/stephan/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.1/cores/arduino/Arduino.h:23,
from /Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.h:27,
from /Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:24:
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:38:30: error: 'REFS0' was not declared in this scope
#define ADMUX_VCCWRT1V1 (_BV(REFS0) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1))
^
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:45:16: note: in expansion of macro 'ADMUX_VCCWRT1V1'
if (ADMUX != ADMUX_VCCWRT1V1)
^~~~~~~~~~~~~~~
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:38:30: note: suggested alternative: 'VREF_t'
#define ADMUX_VCCWRT1V1 (_BV(REFS0) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1))
^
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:45:16: note: in expansion of macro 'ADMUX_VCCWRT1V1'
if (ADMUX != ADMUX_VCCWRT1V1)
^~~~~~~~~~~~~~~
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:38:43: error: 'MUX3' was not declared in this scope
#define ADMUX_VCCWRT1V1 (_BV(REFS0) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1))
^
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:45:16: note: in expansion of macro 'ADMUX_VCCWRT1V1'
if (ADMUX != ADMUX_VCCWRT1V1)
^~~~~~~~~~~~~~~
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:38:55: error: 'MUX2' was not declared in this scope
#define ADMUX_VCCWRT1V1 (_BV(REFS0) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1))
^
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:45:16: note: in expansion of macro 'ADMUX_VCCWRT1V1'
if (ADMUX != ADMUX_VCCWRT1V1)
^~~~~~~~~~~~~~~
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:38:67: error: 'MUX1' was not declared in this scope
#define ADMUX_VCCWRT1V1 (_BV(REFS0) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1))
^
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:45:16: note: in expansion of macro 'ADMUX_VCCWRT1V1'
if (ADMUX != ADMUX_VCCWRT1V1)
^~~~~~~~~~~~~~~
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:55:3: error: 'ADCSRA' was not declared in this scope
ADCSRA |= _BV(ADSC);
^~~~~~
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:55:3: note: suggested alternative: 'ADC_t'
ADCSRA |= _BV(ADSC);
^~~~~~
ADC_t
In file included from /Users/stephan/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/io.h:99:0,
from /Users/stephan/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino5/avr/include/avr/pgmspace.h:90,
from /Users/stephan/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.1/cores/arduino/api/String.h:30,
from /Users/stephan/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.1/cores/arduino/api/Print.h:24,
from /Users/stephan/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.1/cores/arduino/api/Stream.h:25,
from /Users/stephan/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.1/cores/arduino/api/Client.h:22,
from /Users/stephan/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.1/cores/arduino/api/ArduinoAPI.h:29,
from /Users/stephan/Library/Arduino15/packages/arduino/hardware/megaavr/1.8.1/cores/arduino/Arduino.h:23,
from /Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.h:27,
from /Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:24:
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:55:17: error: 'ADSC' was not declared in this scope
ADCSRA |= _BV(ADSC);
^
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:55:17: note: suggested alternative: 'ADC0'
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:61:28: error: 'ADC' was not declared in this scope
float vcc = 1.1*1024.0 / ADC;
^~~
/Users/stephan/Projects/arduino/libraries/Arduino_Vcc/Vcc.cpp:61:28: note: suggested alternative: 'ADC0'
float vcc = 1.1*1024.0 / ADC;
^~~
ADC0
exit status 1