Open stevefoxuk opened 4 years ago
Did you download AltSoftSerial? (in file AltSoftSerial_Boards.h) must be replaced:
Did you download AltSoftSerial? (in file AltSoftSerial_Boards.h) must be replaced:
elif defined(ARDUINO_AVR_YUN) || defined(ARDUINO_AVR_LEONARDO) || defined(AVR_ATmega32U4)
define ALTSS_USE_TIMER1
define INPUT_CAPTURE_PIN 4 // receive
define OUTPUT_COMPARE_A_PIN 9 // transmit
No, I haven't modified anything, I read that in the instructions but it references it being to do with the pro micro and the serial the USB is tired too and assumed it was not relevant to the nano?
try changing and building
Hi, im trying to flash this to a nano to use it to drive the Yaapu telemetry widget on a jumper T16 as it will work with any Rx if you can send it the GPS data but i cant get the firmware to flash to an Arduino Nano.
here is the error message i get in IDE, any ideas please Thanks, Steve.
Arduino: 1.8.11 (Windows 7), Board: "Arduino Nano, ATmega328P (Old Bootloader)"
In file included from sketch\uart.h:5:0,
c:\program files (x86)\arduino\hardware\tools\avr\avr\include\util\setbaud.h:222:4: warning: #warning "Baud rate achieved is higher than allowed" [-Wcpp]
warning "Baud rate achieved is higher than allowed"
In file included from sketch\IBUSTelemetry.h:24:0,
sketch\ppm.h: In function 'void setupPpm()':
ppm.h:83:3: error: 'TCCR3A' was not declared in this scope
TCCR3A = 0; // set entire TCCR4 register to 0
^
~sketch\ppm.h:83:3: note: suggested alternative: 'TCCR0A'
TCCR3A = 0; // set entire TCCR4 register to 0
^
~TCCR0A
ppm.h:84:3: error: 'TCCR3B' was not declared in this scope
TCCR3B = 0;
^
~sketch\ppm.h:84:3: note: suggested alternative: 'TCCR0B'
TCCR3B = 0;
^
~TCCR0B
ppm.h:85:3: error: 'OCR3A' was not declared in this scope
OCR3A = 100; // compare match register, changed on the fly. First call in 100*0.5us.
^~~~~
sketch\ppm.h:85:3: note: suggested alternative: 'OCR2A'
OCR3A = 100; // compare match register, changed on the fly. First call in 100*0.5us.
^~~~~
OCR2A
ppm.h:88:3: error: 'TIMSK3' was not declared in this scope
TIMSK3 |= (1 << OCIE3A); // enable timer compare interrupt
^
~sketch\ppm.h:88:3: note: suggested alternative: 'TIMSK0'
TIMSK3 |= (1 << OCIE3A); // enable timer compare interrupt
^
~TIMSK0
ppm.h:88:19: error: 'OCIE3A' was not declared in this scope
TIMSK3 |= (1 << OCIE3A); // enable timer compare interrupt
sketch\ppm.h:88:19: note: suggested alternative: 'OCIE0A'
TIMSK3 |= (1 << OCIE3A); // enable timer compare interrupt
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:30:0,
sketch\ppm.h: In function 'void TIMER3_COMPA_vect()':
sketch\ppm.h:105:5: warning: 'TIMER3_COMPA_vect' appears to be a misspelled 'signal' handler, missing '__vector' prefix [-Wmisspelled-isr]
ISR(TIMER3_COMPA_vect){
In file included from sketch\IBUSTelemetry.h:24:0,
ppm.h:108:3: error: 'TCNT3' was not declared in this scope
TCNT3 = 0;
^~~~~
sketch\ppm.h:108:3: note: suggested alternative: 'TCNT0'
TCNT3 = 0;
^~~~~
TCNT0
ppm.h:111:5: error: 'OCR3A' was not declared in this scope
sketch\ppm.h:111:5: note: suggested alternative: 'OCR2A'
ppm.h:121:9: error: 'OCR3A' was not declared in this scope
sketch\ppm.h:121:9: note: suggested alternative: 'OCR2A'
ppm.h:124:9: error: 'OCR3A' was not declared in this scope
sketch\ppm.h:124:9: note: suggested alternative: 'OCR2A'
ppm.h:129:7: error: 'OCR3A' was not declared in this scope
sketch\ppm.h:129:7: note: suggested alternative: 'OCR2A'
In file included from C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino:25:0:
sketch\IBUSTelemetry.h: In function 'bool ibusRXByte(uint8_t)':
IBUSTelemetry.h:297:15: error: 'LED_BUILTIN_RX' was not declared in this scope
sketch\IBUSTelemetry.h:297:15: note: suggested alternative: 'LED_BUILTIN'
In file included from C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino:27:0:
sketch\uart.h: In function 'void initSerial()':
uart.h:21:2: error: 'UBRR1H' was not declared in this scope
UBRR1H = UBRRH_VALUE;
^
~sketch\uart.h:21:2: note: suggested alternative: 'UBRR0H'
UBRR1H = UBRRH_VALUE;
^
~UBRR0H
uart.h:22:2: error: 'UBRR1L' was not declared in this scope
UBRR1L = UBRRL_VALUE;
^
~sketch\uart.h:22:2: note: suggested alternative: 'UBRR0L'
UBRR1L = UBRRL_VALUE;
^
~UBRR0L
uart.h:24:2: error: 'UCSR1A' was not declared in this scope
UCSR1A |= _BV(U2X1);
^
~sketch\uart.h:24:2: note: suggested alternative: 'UCSR0A'
UCSR1A |= _BV(U2X1);
^
~UCSR0A
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
uart.h:24:16: error: 'U2X1' was not declared in this scope
UCSR1A |= _BV(U2X1);
sketch\uart.h:24:16: note: suggested alternative: 'U2X0'
In file included from C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino:27:0:
uart.h:28:2: error: 'UCSR1C' was not declared in this scope
UCSR1C = _BV(UCSZ11) | _BV(UCSZ10); / 8-bit data /
^
~sketch\uart.h:28:2: note: suggested alternative: 'UCSR0C'
UCSR1C = _BV(UCSZ11) | _BV(UCSZ10); / 8-bit data /
^
~UCSR0C
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
uart.h:28:15: error: 'UCSZ11' was not declared in this scope
UCSR1C = _BV(UCSZ11) | _BV(UCSZ10); / 8-bit data /
sketch\uart.h:28:15: note: suggested alternative: 'UCSZ01'
uart.h:28:29: error: 'UCSZ10' was not declared in this scope
UCSR1C = _BV(UCSZ11) | _BV(UCSZ10); / 8-bit data /
sketch\uart.h:28:29: note: suggested alternative: 'UCSZ00'
In file included from C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino:27:0:
uart.h:29:2: error: 'UCSR1B' was not declared in this scope
UCSR1B = _BV(RXEN1) | _BV(TXEN1); / Enable RX and TX /
^
~sketch\uart.h:29:2: note: suggested alternative: 'UCSR0B'
UCSR1B = _BV(RXEN1) | _BV(TXEN1); / Enable RX and TX /
^
~UCSR0B
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
uart.h:29:15: error: 'RXEN1' was not declared in this scope
UCSR1B = _BV(RXEN1) | _BV(TXEN1); / Enable RX and TX /
sketch\uart.h:29:15: note: suggested alternative: 'RXEN0'
uart.h:29:28: error: 'TXEN1' was not declared in this scope
UCSR1B = _BV(RXEN1) | _BV(TXEN1); / Enable RX and TX /
sketch\uart.h:29:28: note: suggested alternative: 'TXEN0'
uart.h:9:34: error: 'RXCIE1' was not declared in this scope
define RXCIE_on() UCSR1B |= _BV(RXCIE1)
sketch\uart.h:34:2: note: in expansion of macro 'RXCIE_on'
RXCIE_on();
^
~~~sketch\uart.h:9:34: note: suggested alternative: 'RXCIE0'
define RXCIE_on() UCSR1B |= _BV(RXCIE1)
sketch\uart.h:34:2: note: in expansion of macro 'RXCIE_on'
RXCIE_on();
^
~~~In file included from C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino:27:0:
sketch\uart.h: In function 'void usart_send(uint8_t*, uint8_t)':
uart.h:40:11: error: 'LED_BUILTIN_TX' was not declared in this scope
pinMode(LED_BUILTIN_TX, OUTPUT);
sketch\uart.h:40:11: note: suggested alternative: 'LED_BUILTIN'
pinMode(LED_BUILTIN_TX, OUTPUT);
uart.h:47:2: error: 'UCSR1B' was not declared in this scope
UCSR1B = _BV(TXEN1) | _BV(UDRIE1); / TX only with interrupt/
^
~sketch\uart.h:47:2: note: suggested alternative: 'UCSR0B'
UCSR1B = _BV(TXEN1) | _BV(UDRIE1); / TX only with interrupt/
^
~UCSR0B
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
uart.h:47:15: error: 'TXEN1' was not declared in this scope
UCSR1B = _BV(TXEN1) | _BV(UDRIE1); / TX only with interrupt/
sketch\uart.h:47:15: note: suggested alternative: 'TXEN0'
uart.h:47:28: error: 'UDRIE1' was not declared in this scope
UCSR1B = _BV(TXEN1) | _BV(UDRIE1); / TX only with interrupt/
sketch\uart.h:47:28: note: suggested alternative: 'UDRIE0'
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:30:0,
sketch\uart.h: In function 'void USART1_RX_vect()':
sketch\uart.h:52:5: warning: 'USART1_RX_vect' appears to be a misspelled 'signal' handler, missing '__vector' prefix [-Wmisspelled-isr]
ISR(USART1_RX_vect)
In file included from C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino:27:0:
uart.h:54:32: error: 'UDR1' was not declared in this scope
telemetryRequest = ibusRXByte(UDR1);
sketch\uart.h:54:32: note: suggested alternative: 'UDR0'
telemetryRequest = ibusRXByte(UDR1);
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:30:0,
sketch\uart.h: In function 'void USART1_UDRE_vect()':
sketch\uart.h:58:5: warning: 'USART1_UDRE_vect' appears to be a misspelled 'signal' handler, missing '__vector' prefix [-Wmisspelled-isr]
ISR(USART1_UDRE_vect)
In file included from C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino:27:0:
uart.h:62:3: error: 'UDR1' was not declared in this scope
UDR1 = val;
^~~~
sketch\uart.h:62:3: note: suggested alternative: 'UDR0'
UDR1 = val;
^~~~
UDR0
uart.h:67:3: error: 'UCSR1B' was not declared in this scope
UCSR1B = _BV(RXEN1) | _BV(RXCIE1); / Enable RX so we can receive next frame/
^
~sketch\uart.h:67:3: note: suggested alternative: 'UCSR0B'
UCSR1B = _BV(RXEN1) | _BV(RXCIE1); / Enable RX so we can receive next frame/
^
~UCSR0B
In file included from c:\program files (x86)\arduino\hardware\tools\avr\avr\include\avr\io.h:99:0,
uart.h:67:16: error: 'RXEN1' was not declared in this scope
UCSR1B = _BV(RXEN1) | _BV(RXCIE1); / Enable RX so we can receive next frame/
sketch\uart.h:67:16: note: suggested alternative: 'RXEN0'
uart.h:67:29: error: 'RXCIE1' was not declared in this scope
UCSR1B = _BV(RXEN1) | _BV(RXCIE1); / Enable RX so we can receive next frame/
sketch\uart.h:67:29: note: suggested alternative: 'RXCIE0'
In file included from C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino:27:0:
uart.h:68:13: error: 'LED_BUILTIN_TX' was not declared in this scope
sketch\uart.h:68:13: note: suggested alternative: 'LED_BUILTIN'
C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino: In function 'void timerInit()':
MAVLinkToIBUS:38:2: error: 'TCCR4A' was not declared in this scope
TCCR4A = 0; //normal port mode
^
~C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino:38:2: note: suggested alternative: 'TCCR0A'
TCCR4A = 0; //normal port mode
^
~TCCR0A
MAVLinkToIBUS:39:2: error: 'TCCR4B' was not declared in this scope
TCCR4B = 0;
^
~C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino:39:2: note: suggested alternative: 'TCCR0B'
TCCR4B = 0;
^
~TCCR0B
MAVLinkToIBUS:40:2: error: 'TCNT4' was not declared in this scope
TCNT4 = 0;
^~~~~
C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino:40:2: note: suggested alternative: 'TCNT0'
TCNT4 = 0;
^~~~~
TCNT0
MAVLinkToIBUS:44:2: error: 'OCR4A' was not declared in this scope
OCR4A = 0xB1;
^~~~~
C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino:44:2: note: suggested alternative: 'OCR2A'
OCR4A = 0xB1;
^~~~~
OCR2A
MAVLinkToIBUS:46:19: error: 'CS42' was not declared in this scope
TCCR4B |= (1 << CS42) |(1 << CS41) | (1 << CS40); // 64 prescale
C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino:46:19: note: suggested alternative: 'CS12'
TCCR4B |= (1 << CS42) |(1 << CS41) | (1 << CS40); // 64 prescale
MAVLinkToIBUS:46:32: error: 'CS41' was not declared in this scope
TCCR4B |= (1 << CS42) |(1 << CS41) | (1 << CS40); // 64 prescale
C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino:46:32: note: suggested alternative: 'CS01'
TCCR4B |= (1 << CS42) |(1 << CS41) | (1 << CS40); // 64 prescale
MAVLinkToIBUS:46:46: error: 'CS40' was not declared in this scope
TCCR4B |= (1 << CS42) |(1 << CS41) | (1 << CS40); // 64 prescale
C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino:46:46: note: suggested alternative: 'CS00'
TCCR4B |= (1 << CS42) |(1 << CS41) | (1 << CS40); // 64 prescale
MAVLinkToIBUS:47:2: error: 'TIMSK4' was not declared in this scope
TIMSK4 |= (1 << OCIE4A); // enable timer compare interrupt
^
~C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino:47:2: note: suggested alternative: 'TIMSK0'
TIMSK4 |= (1 << OCIE4A); // enable timer compare interrupt
^
~TIMSK0
MAVLinkToIBUS:47:18: error: 'OCIE4A' was not declared in this scope
TIMSK4 |= (1 << OCIE4A); // enable timer compare interrupt
C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino:47:18: note: suggested alternative: 'OCIE0A'
TIMSK4 |= (1 << OCIE4A); // enable timer compare interrupt
C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino: In function 'void setup()':
MAVLinkToIBUS:55:11: error: 'LED_BUILTIN_RX' was not declared in this scope
pinMode(LED_BUILTIN_RX, INPUT);
C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino:55:11: note: suggested alternative: 'LED_BUILTIN'
pinMode(LED_BUILTIN_RX, INPUT);
MAVLinkToIBUS:56:11: error: 'LED_BUILTIN_TX' was not declared in this scope
pinMode(LED_BUILTIN_TX, INPUT);
C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino:56:11: note: suggested alternative: 'LED_BUILTIN'
pinMode(LED_BUILTIN_TX, INPUT);
C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino: In function 'void waitFor(uint16_t)':
MAVLinkToIBUS:69:2: error: 'TCNT4' was not declared in this scope
TCNT4 = 0;
^~~~~
C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino:69:2: note: suggested alternative: 'TCNT0'
TCNT4 = 0;
^~~~~
TCNT0
MAVLinkToIBUS:70:3: error: 'TC4H' was not declared in this scope
TC4H = (uint8_t)(value >> 8);
^~~~
C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino:70:3: note: suggested alternative: 'PC4'
TC4H = (uint8_t)(value >> 8);
^~~~
PC4
MAVLinkToIBUS:71:2: error: 'OCR4A' was not declared in this scope
OCR4A = (uint8_t)(value & 0xff);
^~~~~
C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino:71:2: note: suggested alternative: 'OCR2A'
OCR4A = (uint8_t)(value & 0xff);
^~~~~
OCR2A
In file included from C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:30:0,
C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino: In function 'void TIMER4_COMPA_vect()':
C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino:100:5: warning: 'TIMER4_COMPA_vect' appears to be a misspelled 'signal' handler, missing '__vector' prefix [-Wmisspelled-isr]
ISR(TIMER4_COMPA_vect) {
MAVLinkToIBUS:102:13: error: 'LED_BUILTIN_RX' was not declared in this scope
C:\Users\Steve\AppData\Local\Temp\arduino_modified_sketch_896016\MAVLinkToIBUS.ino:102:13: note: suggested alternative: 'LED_BUILTIN'
exit status 1 'TCCR3A' was not declared in this scope
This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.