Open AKTanara opened 1 year ago
I had this same error and was able to get around it by editing the sys.h file to reflect the expected values from iom32u4.h. I think the problem is related to the board not being recognized correctly, so "__AVR_ATmega32" is not defined and then "AVR_ATmega_Mighty__" is not defined, which leads to many other things not being defined properly...
Many definitions simply needed a "1" added to the name. Ex:
#define UDRE UDRE1
#define U2X U2X1
#define TXEN TXEN1
#define RXEN RXEN1
#define RXC RXC1
#define TXC TXC1
#define HOST_UCSRA UCSR1A
#define HOST_UCSRB UCSR1B
#define HOST_UDR UDR1
#define HOST_UBRR UBRR1
However, I am still having communication issues with my board so I can't confirm whether this actually worked beyond stopping the error from appearing.
I suspect the port/pin definitions aren't right either, but I haven't figured it out what they should be yet:
# ifndef HOST_USART
# define HOST_USART 0
# endif
# ifndef UPDI_PORT
# define UPDI_PORT C
# endif
# ifndef UPDI_PIN
# define UPDI_PIN 7
# endif
# ifndef LED_PORT
# define LED_PORT B
# endif
# ifndef LED_PIN
# define LED_PIN 7
# endif
Hopefully this helps the author create a fix.
@nhansendev Have you had any success in getting it to work? I'm attempting the same (on a DFR0282 Beetle) without much luck.
@nhansendev Have you had any success in getting it to work? I'm attempting the same (on a DFR0282 Beetle) without much luck.
Unfortunately, no. I decided it wasn't worth the hassle and switched to the typical Arduino Nano as my programmer instead.
@nhansendev Have you had any success in getting it to work? I'm attempting the same (on a DFR0282 Beetle) without much luck.
Unfortunately, no. I decided it wasn't worth the hassle and switched to the typical Arduino Nano as my programmer instead.
Thanks. Same here; it's not worth the time, and the ATmega328 variants are still well available (and supported) anyway.
I knew I'd have issues while trying to upload my code using Pro Mico as UPDI programmer, but I didn't think I'd have issues programming the programmer itself! While compiling in Arduino IDE 1.8 for any of the boards (Leonardo, Pro Micro, Fio v3, ...) all having Atmega32U4 chip, returns this ERROR: