Trainer-xM with Avr Dude

Hi Guys,

I recently got a trainer xM and hooked it up to the Beagle xM. I am
trying to push the classic blink up from the BeagleBoard with the
following failure

avrdude -V -F -c stk500v1 -p m328p -P /dev/ttyO1 -b 57600 -U
flash:w:main.hex
avrdude: stk500_getsync(): not in sync: resp=0x20

NOTE: The xM hardware assigns OMAP serial ports to /dev/ttyOx. At
least the board is responding which is good news.

Do I need to get an ISP programmer and burn the Arduino bootloader
onto the Trainer-xM ? A clear indication of this on the site will be
helpful. Being arduino compatible I assumed it would come with the
bootloader.

Cheers,

whatnick.

Hi whatnick,

Yes you must use an ISP programmer to load the Arduino bootloader.
http://elinux.org/BeagleBoard_Trainer#ATmega328_.28Arduino_Hardware_Compatible.29

"
Step One ( Load Bootloader ): Arduino bootloader configuration using ISP programmer:
avrdude -c usbtiny -p atmega328p -e -u -U lock:w:0x3f:m -U efuse:w:0x05:m -U hfuse:w:0xda:m -U lfuse:w:0xff:m

avrdude -c usbtiny -p atmega328p -U flash:w:ATmegaBOOT_168_atmega328_pro_8MHz.hex -U lock:w:0x0f:m

Step Two ( now you can load your application code ):

AVR code and Arduino sketches can be uploaded using avrdude on the BeagleBoard:
avrdude -V -F -c stk500v1 -p m328p -P /dev/ttyS1 -b 57600 -U flash:w:main.hex
"

I haven't used AVR yet or avrdude but my reading of that wiki page indicates that you must first load the arduino bootloader with a ISP. :slight_smile:

Take care,
Jim

Hi Guys,

I recently got a trainer xM and hooked it up to the Beagle xM. I am
trying to push the classic blink up from the BeagleBoard with the
following failure

avrdude -V -F -c stk500v1 -p m328p -P /dev/ttyO1 -b 57600 -U
flash:w:main.hex
avrdude: stk500_getsync(): not in sync: resp=0x20

NOTE: The xM hardware assigns OMAP serial ports to /dev/ttyOx. At
least the board is responding which is good news.

Do I need to get an ISP programmer and burn the Arduino bootloader
onto the Trainer-xM ? A clear indication of this on the site will be
helpful. Being arduino compatible I assumed it would come with the
bootloader.

Cheers,

whatnick.

--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To post to this group, send email to beagleboard@googlegroups.com.
To unsubscribe from this group, send email to beagleboard+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.

----- End message from whatnickd@gmail.com -----

Hi whatnick,

yes, you need to burn the bootloader with ISP. I did this with avr
dragon and it worked without problem.

Cheers,
Maksym.