Reading Ritron Atmega8 eeprom with Raspberry Pi and SPI [message #3237] |
Wed, 21 December 2016 02:36  |
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;
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
[Updated on: Sun, 15 January 2017 19:56] Report message to a moderator
|
|
|
|