AVRDude Error: address 0x820003 out of range at line 2488

I want to flash a .hex file on Arduino Mega using AVRDude.

I ran this command:
avrdude -v -patmega2560 -c wiring -P /dev/ttyACM3 -b 115200 -D -U flash:w:"/address of file.hex":i

and got this error:
ERROR: address 0x820003 out of range at line 2488 of address of file.hex

What should I do? Please guide.

How was the HEX file generated?

This topic has a plausible explanation: process - Contiki compile error, " ERROR: address 0x820003 out of range at line 1740 of..." - Stack Overflow and if you generated the HEX file yourself it provides a solution.

Thank you for the link but I am too dumb to understand it.

NECTO Studio IDE created the .hex file and I am using AVRDude to flash it onto the Arduino Mega.

I want to connect NBIoT 5 click module of Mikroe to Arduino.

I suspect that you have to try https://forum.mikroe.com/ and ask the question there. It's a matter of configuration / passing the correct arguments to avr-objcopy but I can't tell you if you can influence that.

They also have a helpdesk, I guess for paying customers.

1 Like

Thank you!

Will do just that.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.