Monochron updating questions

by SIUDoc on Sat Jan 05, 2013 5:32 pm

I have completed the Monochron and everything is working fine, so I decided to move to the next step and update the clock. I am using a FTDI adapter and following the steps as laid out at http://www.ladyada.net/make/monochron/bootload.html

After following the steps in the webpage, everything is working fine, up to the use of the downloaded firmware. When I use the provided link in the instruction, "Go to the clock listing page, and click on the link that says "Code at Github" then click Download Source and save the zip or tar file onto your computer. Then uncompress it and find the file called monochron.hex in the firmware subfolder and copy it to your home directory (or to C:\ if you're using Windows)". When I use the link provided, there is no "download source" so I used the zip tab to download the entire file structure. Every hex file I find in the firmware directories of each distribution does not work and I get "invalid file format..." for the monochron.hex in the XDali and the multichron.hex in the multichron distribution. I even tried to compile the file in the Dali distribution using the existing files and compiling them from the download.

Am I missing something? I thought that all I needed to do was to download the suitable hex and upload it to the clock. I feel like I am trying to connect different sets of instructions together as I am not finding one that ties all of the pieces together. Is the webpage incorrect? If so, where do I get a more definitive set of instructions for this process. If the webpage is correct, can you help me figure out where I went wrong?

Thanks for any help you might offer.
SIUDoc
 
Posts: 4
Joined: Sat Jan 05, 2013 4:53 pm

Re: Monochron updating questions

by adafruit_support_bill on Mon Jan 07, 2013 6:37 am

Github redesigned their page layout a bit since the instructions were written, but it looks like you found the "zip" button OK.
Be sure to unzip the files on your computer before uploading to the clock.
User avatar
adafruit_support_bill
 
Posts: 25601
Joined: Sat Feb 07, 2009 9:11 am

Re: Monochron updating questions

by SIUDoc on Mon Jan 07, 2013 7:53 am

I did unzip the file, got a hex file of 66kb, and attempted to upload to the clock. The response was "invalid file type" from AVRdude.

Any other thoughts?

thanks.
SIUDoc
 
Posts: 4
Joined: Sat Jan 05, 2013 4:53 pm

Re: Monochron updating questions

by adafruit_support_rick on Mon Jan 07, 2013 9:19 am

Please post the command line you're giving to avrdude.
User avatar
adafruit_support_rick
 
Posts: 8614
Joined: Tue Mar 15, 2011 10:42 am
Location: Buffalo, NY

Re: Monochron updating questions

by SIUDoc on Mon Jan 07, 2013 10:45 am

Here is the command line

avrdude -c arduino -p m328p -P com4 -b 57600

gives me device initialized and ready to accept instructions

avrdude -c arduino -p m328p -P com4 -b 57600 -U flash:w:C:\kill\mono\firmware\monochron.hex (or multichron depending on distribution)

gives "invalid file format \kill\mono\firmware\monochron.hex' in process specifier" followed by a parsing error (I assume that it cannot parse the file as a result of it being invalid?)

I am running the command from c:\kill\mono\firmware directory, the same directory where the distribution files were unzipped and using the full path in the command. I also was careful of upper vs. lower case on parameters in the command line. Can't think of any other information to provide you.

Thanks for your help.
SIUDoc
 
Posts: 4
Joined: Sat Jan 05, 2013 4:53 pm

Re: Monochron updating questions

by adafruit on Mon Jan 07, 2013 11:25 am

I think the "C:" is confusing it, just go to the directory with 'cd C:\foobar" and run the command

https://raw.github.com/CaitSith2/monoch ... ChronB.hex

looks valid to me
User avatar
adafruit
 
Posts: 11511
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Monochron updating questions

by SIUDoc on Mon Jan 07, 2013 12:53 pm

We have a winner. Apparently too much information is not good and running the command line locally to the hex file did the trick. The clock is now Dali-ing nicely.

Thanks for the help,

Doc
SIUDoc
 
Posts: 4
Joined: Sat Jan 05, 2013 4:53 pm