Atmega2560 radio

Help and support for any other brand radios
Post Reply
User avatar
mentero
Posts: 92
Joined: Sat Apr 23, 2016 1:11 pm
Country: Spain

Atmega2560 radio

Post by mentero »

Good morning,
This is my first post in this forum, and rather long, sorry.
I am building a Atmega2560 radio based on the Nextsteprc project and the situation is as follows;
The radio is working flawlessly (on the table), I can communicate with the board (arduino clone Atmega2560 board with CH340G). through the ICSP port.

But, when I am try to use Companion (2.1.8), i find all type of mismatch and eeprom errors. :(
I think i have nailed the problem in the reading of files from eeprom through the USB serial port.

If i read the eeprom using the ICSP port, i get a file that is equal to a direct avrdude dump. Good.
But if try to read the same eeprom without any change, i get a different file, where some blocks are lost in the process of reading, and other are misplaced. And data is repeated at adress 0800. No wonder Companion complains.
It seems as if one block is read, and one is lost. I have tried fiddling the avrdude.conf, and also tried different programmers from the STK500 family without success.

I am attaching part of the files below.
Any help will be appreciated, the only similar problem i have found is in this thread, but the solution does not apply since i am not using Arduino IDE. viewto...=1057&start=30

System is Linux mint 64bits, avrdude -v 6.1, cheap chinese arduino clone with CH340G usb to serial converter.

ICSB
0000 057011100C3D1005 5D20000000000000 0000000000000000 0000000000000000
0020 0000000000000000 0000000000000000 0000000000000000 0000000000000000
0040 0000000000000000 0000000000000000 0000000000000000 0000000000000000
0060 00013B1000000000 0000000000000000 0201D9B502800180 0195028001800195
0080 0302800180019502 8001800195028001 0480019502800180 0195028001800191
00A0 001492195A910452 0101C114E1F94200 0607ECFFEEFCFB1D 1CB2010450030102
00C0 0764F3020164F303 03647F7F7F7F7F7F 087F7F7F7F7F4801 076008F501F501F5
00E0 0901F5015608F501 F501F501F5015608 0AF501F501F501F5 015608F501F501F5
0100 0B01F5015608F501 F501F501F5017F66 0001024200000000 0000000000000000
0120 0D01D9B502800180 0195028001800195 0E02800180019502 8001800195028001
0140 0F80019502800180 0195028001800191 101492195A910452 0101C114C18091F9
0160 0042000000000000 0000000000000000 1200000000000000 0000000000000000

:00000001FF

USB
0000 057011100C3D1005 0000000000000000 0000000000000000 0000000000000000
0020 0000000000000000 0000000000000000 00013B1000000000 0201D9B502800180
0040 0302800180019502 0480019502800180 001492195A910452 0607ECFFEEFCFB1D
0060 0764F3020164F303 087F7F7F7F7F4801 0901F5015608F501 0AF501F501F501F5
0080 0B01F5015608F501 0001024200000000 0D01D9B502800180 0E02800180019502
00A0 0F80019502800180 101492195A910452 0042000000000000 1200000000000000
00C0 1300000000000000 1400000000000000 1500000000000000 1600000000000000

------------------------------- same blocks repeated at addess 0800.
0800 057011100C3D1005 0000000000000000 0000000000000000 0000000000000000
0820 0000000000000000 0000000000000000 00013B1000000000 0201D9B502800180
0840 0302800180019502 0480019502800180 001492195A910452 0607ECFFEEFCFB1D
0860 0764F3020164F303 087F7F7F7F7F4801 0901F5015608F501 0AF501F501F501F5
0880 0B01F5015608F501 0001024200000000 0D01D9B502800180 0E02800180019502
08A0 0F80019502800180 101492195A910452 0042000000000000 1200000000000000
08C0 1300000000000000 1400000000000000 1500000000000000 1600000000000000

:00000001FF

Note for example that ICSP address 0080 is placed at 0040 in USB read. Only one out of two address is read by USB. ???????
The eeprom seems to work without a problem when read and/or write by ICSP port.
We demand rigidly defined areas of doubt and uncertainty. Douglas Adams.

User avatar
mentero
Posts: 92
Joined: Sat Apr 23, 2016 1:11 pm
Country: Spain

Re: Atmega2560 radio

Post by mentero »

Sorry, posted the wrong link, this one works (hopefully).

viewtopic.php?f=109&t=1057&start=30
We demand rigidly defined areas of doubt and uncertainty. Douglas Adams.
User avatar
mentero
Posts: 92
Joined: Sat Apr 23, 2016 1:11 pm
Country: Spain

SOLVED.

Post by mentero »

Good morning,

Just in case somebody finds the same problem, I found the solution.

avrdude version 6.0 and 6.1 does not seem to work on my system

Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08) x86_64 GNU/Linux


I have installed avrdude: Version 5.11.1, compiled on Oct 30 2011 and everything is working now. Companion and my mega2560 radio speak to each other fluently and eeprom is read without errors.

Good flights.
We demand rigidly defined areas of doubt and uncertainty. Douglas Adams.

Post Reply

Return to “Other Radios”