====firmware====
*[[https://github.com/ea/srxe_cc1101|srxe_cc1101]]
modified Arduboy library\\
{{youtube>6VqPGFtIT8Q?medium}}
====Flashing====
===pinouts===
Test Points (grouped, external access available through battery compartment)
TCK top left if oriented with SW1 on top of board
Layout: TCK TMS TDO TDI
RST MISO
SCK GND VCC MOSI
TCK - ATmega128RFA1 pin 3 [PF4:ADC4:TCK]
SCK - ATmega128RFA1 pin 37 [PB1:SCK:PCINT1]
TMS - ATmega128RFA1 pin 4 [PF5:ADC5:TMS]
GND - GND
RST - ATmega128RFA1 pin 12 [RSTN]
TDO - ATmega128RFA1 pin 5 [PF6:ADC6:TDO]
VCC - VCC (3.3V)
MISO - ATmega128RFA1 pin 39 [PB3:MISO:PDO:PCINT3]
TDI - ATmega128RFA1 pin 6 [PF7:ADC7:TDI]
MOSI - ATmega128RFA1 pin 38 [PB2:MOSI:PDI:PCINT2]
-------------------------------------------------------
Test Points (not in above group) SCL, SDA, CLK0
SCL - ATMega128RFA1 pin 25 [PD0:SCL:INT0], U5 pin 6
SDA - ATMega128RFA1 pin 26 [PD1:SDA:INT1], U5 pin 7
CLK0 - ATmega128RFA1 pin 53 [PE7:ICP3:INT7:CLKO], R29 to Display pin 6
-------------------------------------------------------
ISP Pads
Pin 1 top left if oriented with SW1 on top of board
Layout: 1 2
3 4
5 6
1 - MISO, ATmega128RFA1 pin 39 [PB3:MISO:PDO:PCINT3]
2 - VCC (3.3V)
3 - SCK, ATmega128RFA1 pin 37 [PB1:SCK:PCINT1]
4 - MOSI, ATmega128RFA1 pin 38 [PB2:MOSI:PDI:PCINT2]
5 - RST, ATmega128RFA1 pin 12 [RSTN]
6 - GND
from [[https://pastebin.com/uFfBCQDG|pastebbin]], [[https://community.arduboy.com/t/smart-response-xe-re-purposed-into-arduboy/6094|source]]
===USBASP V2.0===
{{:usbasp-v2.0-idc-pinout.png?300}}
eereta:
*found [[https://tosiek.pl/usbasp-v2-0-warning-cannot-set-sck-period/|here]]
*does not support its tx/rx ports - see usbasp_tty for 2015 windows exe
#connect ISP lines between USBASP and XEresponder
#connect USBISP V2 to pc
git clone https://github.com/bitbank2/SMART_bootloader
/bin/avrdude -C/etc/avrdude.conf -v -patmega128rfa1 -cusbasp -Pusb -e -Ulock:w:0x3F:m -Uefuse:w:0xF5:m -Uhfuse:w:0xD8:m -Ulfuse:w:0xFF:m
/bin/avrdude -C/etc/avrdude.conf -v -patmega128rfa1 -cusbasp -Pusb -Uflash:w:./SMART_bootloader/ATmegaBOOT_atmega128rfa1.hex:i -Ulock:w:0x0F:m
====srxe_cc1101====
[[https://github.com/ea/srxe_cc1101|srxe_cc1101 hookup]]
{{:pasted:20191221-001729.png}}
====Tools====
{{:pasted:20191129-130518.png}}\\
[[https://www.ebay.com.au/itm/250546684662|pogo pins]]
====Links====
*[[https://hackaday.com/tag/smart-response-xe/|hackaday tags]]
*[[https://bitbanksoftware.blogspot.com/2018/09/my-adventures-in-writing-ota-bootloader.html|writing an OTA bootloader for the ATmega128RFA1]]
*[[https://community.arduboy.com/t/smart-response-xe-re-purposed-into-arduboy/6094|Smart Response XE Re-purposed into Arduboy]]
*[[https://github.com/bitbank2/SmartResponseXE|Larry's SMART Response XE support library]]