How to burn Yocto v2.0 firmware with an Arduino

How to burn Yocto v2.0 firmware with an Arduino

Postby Keith » Jul 2nd, '19, 13:00

The Yocto 2 does not seem to want to be reprogrammed by sysex, so here's a way to do it with an Arduino. You can do this without pulling the Yocto from the case or removing the chip thanks to the on-board ICSP interface.

First, follow these instructions to load in a bootloader.
You do have to use the Arduino 1.0.6 IDE, but that's still available for download from the Arduino site. I used an Arduino Uno, which is available on Amazon for about $20 in the US.

Once you've got the bootloader loaded, grab the latest firmware. You need the .hex version.

Now you need to use the command line. The easiest way to do this is to set your IDE to "verbose mode" (it's under settings or preferences). Load one of the example sketches in the IDE and try to load it into the Yocto. "Bare Minimum" works well because, well, that's all you need.

In the log window, it'll spit out something like this. I'm using a Mac, but the Windows version shouldn't be dramatically different other than file locations.
Code: Select all
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega1284p -cstk500v1 -P/dev/tty.usbmodem14101 -b19200 -D -Uflash:w:/Volumes/2TBHDD/home/Documents/Yocto/Yocto_v2_003.hex:i


Copy that into a terminal window on your Mac and change the final filename to point to your Yocto firmware hex. On a PC, I expect you open up cmd and pop it in there. It'll take a minute or so to load and then verify, and then you have new firmware!
Keith
 
Posts: 6
Joined: May 31st, '19, 03:59

Re: How to burn Yocto v2.0 firmware with an Arduino

Postby Dicky » Jul 3rd, '19, 10:28

Hi Keith,

Thanks very much for this although it doesn't seem to work for me.

I'm also using a mac and have followed the instructions to the letter but my Yocto has no gone a bit mad.. all lights are stuck on and the screen is blank?!

Do you have any idea what could have happened?

R
Dicky
 
Posts: 6
Joined: Apr 2nd, '18, 22:38

Re: How to burn Yocto v2.0 firmware with an Arduino

Postby Keith » Jul 3rd, '19, 14:40

It may still be in bootlooader mode. Don't copy the code I provided, as various file locations will be different. Copy the code from your own Arduino log window and add the correct filename for the Yocto firmware.

When you enter the command in the terminal window, you'll get a bunch of data back again. Right at the end, it'll report success or failure. What does it say?
Keith
 
Posts: 6
Joined: May 31st, '19, 03:59

Re: How to burn Yocto v2.0 firmware with an Arduino

Postby Dicky » Jul 5th, '19, 13:48

Yes, I must have mistyped a directory. Works perfectly now. Thanks very much for your help!
Dicky
 
Posts: 6
Joined: Apr 2nd, '18, 22:38


Return to Yocto² Software

Who is online

Users browsing this forum: No registered users and 1 guest