Ham Radio
Ham Radio, Electronics, Software and more...

Home » Ham Radio » Programming Radios » Reading Ritron Atmega8 eeprom with Raspberry Pi and SPI (Reading Ritron Atmega8 eeprom with Raspberry Pi and SPI)
Reading Ritron Atmega8 eeprom with Raspberry Pi and SPI [message #3237] Wed, 21 December 2016 02:36 Go to next message
root is currently offline  root
Messages: 208
Registered: December 2004
Senior Member
Hardware hacking the Ritron Radio can be done with a Raspberry Pi. If you want to dump the eeprom and flash, you can use your Raspberry Pi.

*** WARNING, ONLY USE THE 3.3V OF THE PI AND NO OTHER POWER TO THE RITRON BOARD ***

If you put anything over 3.3V into the Pi, you will fry it!

Reading Ritron Atmega8 eeprom with Raspberry Pi and SPI goes as follows:

raspi-config # Then go to Advanced Options -> A5 SPI Enable it and reboot

lsmod # This should show spi_bcm2835 in the list
# If not, then issue comnmand:
modprobe spi_bcm2835


Edit the /etc/avrdude.conf configuration file and make sure that the programmer section for linuxspi (Around line number 1127) has:
reset=25;

Ritron 6 Pin Pinout that hooks to Raspberry Pi

Using the 6 pin port on the Ritron and the 40 Pin Header j8 on the Raspberry Pi 2 B Model:
Ritron to Pi
VCC goes to Pin 1 (3.3V) on Pi
GND goes to Pin 6 (Ground) on Pi
RESET goes to Pin 25(Shows as Ground/GPIO 30/SDA0, etc..) on Pi
MOSI goes to Pin 19 (MOSI/GPIO 12) on Pi
MISO goes to Pin 21 (MISO/GPIO 13) on Pi
SCK goes to Pin 23 (SCLK/GPIO 14) on Pi


This is the avrdude command to read the eeprom:
avrdude -F -b 100000 -c linuxspi -p m8 -P /dev/spidev0.0 -U eeprom:r:dtx-142.hex:r Hardware hacking the Ritron Radio can be done with a Raspberry Pi. If you want to dump the eeprom and flash, you can use your Raspberry Pi.

*** WARNING, ONLY USE THE 3.3V OF THE PI AND NO OTHER POWER TO THE RITRON BOARD ***

If you put anything over 3.3V into the Pi, you will fry it!

Reading Ritron Atmega8 eeprom with Raspberry Pi and SPI goes as follows:

raspi-config # Then go to Advanced Options -> A5 SPI Enable it and reboot

lsmod # This should show spi_bcm2835 in the list
# If not, then issue comnmand:
modprobe spi_bcm2835


Edit the /etc/avrdude.conf configuration file and make sure that the programmer section for linuxspi (Around line number 1127) has:
reset=25;

Using the 6 pin port on the Ritron:
Ritron to Pi
VCC goes to Pin 1 (3.3V) on Pi
GND goes to Pin 6 (Ground) on Pi
RESET goes to Pin 25(Shows as Ground/GPIO 30/SDA0, etc..) on Pi
MISO goes to Pin 21 (MISO/GPIO 13) on Pi
MOSI goes to Pin 19 (MOSI/GPIO 12) on Pi
SCK goes to Pin 23 (SCLK/GPIO 14) on Pi


This is the avrdude command to read the eeprom:
avrdude -F -b 100000 -c linuxspi -p m8 -P /dev/spidev0.0 -U eeprom:r:dtx-142.hex:r

MAGIC! You now have a dump of the Ritron Channels and Settings! Change them accordingly and you don't need the programming cable or software..

HAVE FUN AND DON'T FRY ANYTHING!

73!
KC2NDA
Atmega8 EEPROM reading with Raspberry Pi

[Updated on: Sun, 15 January 2017 19:56]

Report message to a moderator

Re: Reading Ritron Atmega8 eeprom with Raspberry Pi and SPI [message #3238 is a reply to message #3237] Wed, 21 December 2016 23:10 Go to previous message
kd2iin is currently offline  kd2iin
Messages: 27
Registered: December 2016
Location: Tivoli, NY
Junior Member
Shocked sweet dude! These radios will do so many cool projects! And.... they are commercial quality... not like the Baofeng!!!

The candle that burns twice as bright burns half as long
Previous Topic: Baofeng Programming Cable Schematic UV-5R
Next Topic: Ritron DTXM-254 Reverse Engineering
Goto Forum:
  


Current Time: Wed Mar 29 22:24:56 EDT 2023

Total time taken to generate the page: 0.03977 seconds