Tuesday, 6th of January 2009
Tuesday, 6th of January 2009
"ISP" — 1 post
put on code from:
http://docswiki.gumstix.com/Robostix_gumstix_ISP

You can use the gumstix to download files into the robostix flash. Create a jumper which connects Atmel 0 Tx to PXA ST Rx and Atmel 0 Rx to PXA ST Tx on the Robostix. It is the jumpers in the section labeled UARTS near the 60-pin hirose connector. I used an old IDE cable and wired in some jumpers; ugly but works.

# insmod robostix_drv.ko (to remove use rmmod robostix_drv.ko)
# ./uisp
Atmel AVR ATmega128 is found.

Yoohoo!

Now added the robostix driver to /etc/modules.

mkdir /lib/modules/2.6.18gum/kernel/drivers/robostix/
mv robostix_drv.ko /lib/modules/2.6.18gum/kernel/drivers/robostix/
insmod
/lib/modules/2.6.18gum/kernel/drivers/robostix/robostix_drv.ko
depmod -a
modprobe robostix_drv

then added:
# Driver for robostix control
robostix_drv

to /etc/modules

set the fuses on the robostix:
# uisp --wr_fuse_l=0xbf --wr_fuse_h=0xc9 --wr_fuse_e=0xff
Atmel AVR ATmega128 is found.

Fuse Low Byte set to 0xbf

Fuse High Byte set to 0xc9


Fuse Extended Byte set to 0xff


Next, I downloaded the test LED flashing program to see if all went well:
# uisp --erase --upload if=Flash-LED.hex
Atmel AVR ATmega128 is found.
Erasing device ...
Reinitializing device
Atmel AVR ATmega128 is found.
Uploading: flash


yes! flashing LEDs....looking good.