Ice Tube Clock: A few programming questions

For RTC breakouts, etc., use the Other Products from Adafruit forum

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
solongsidekick
 
Posts: 31
Joined: Sun Dec 22, 2013 5:26 pm

Ice Tube Clock: A few programming questions

Post by solongsidekick »

Hey guys, I have a few questions that I am sure are pretty basic.

1 (more of a TinyISP/AVRDude question I guess) - Is it possible to pull the firmware from the clock using a TinyISP kit and AVRDude? I know I can probably download the firmware from the site, but I would like to know for future projects as well.

2 - I downloaded some new firmware I want to try (https://github.com/jsgf/iceclock) and following the tips from the kit's 'mods' page was looking for a .hex file to push to the device. There isn't one as far as my beginner eyes can see. Which of the files do I flash?

Thanks in advance guys, I am still trying to learn the basics of hardware hacking.

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Ice Tube Clock: A few programming questions

Post by adafruit_support_rick »

1) Yes - you can read flash, eeprom, and fuse information
2) looks like you'll haveto make the .hex file. You'll need to install WinAVR on Windows or CrossPack-AVR on Mac.

User avatar
solongsidekick
 
Posts: 31
Joined: Sun Dec 22, 2013 5:26 pm

Re: Ice Tube Clock: A few programming questions

Post by solongsidekick »

Thanks for the reply! I have some noob follow up questions.

1 - Do you know the command of the top of your head by chance? Googling just gives me some stuff I can't understand :oops:.

2 - I have WinAVR installed (Windows machine), I will try launching it and see if I can figure out how to build the .hex.

Thanks!

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Ice Tube Clock: A few programming questions

Post by adafruit_support_rick »

You can have a look at ladyada's avrdude tutorial.
http://www.ladyada.net/learn/avr/avrdude.html

The read operation looks like the write operation. You just substitute :r: for :w: in the -U option, and the file name is the file to write to.

User avatar
phild13
 
Posts: 247
Joined: Mon Sep 10, 2012 1:05 pm

Re: Ice Tube Clock: A few programming questions

Post by phild13 »

In addition to what rick has pointed to, you can use AVRDudess as a tool to read, write, verify, though you will still need to 'make' the .hex files necessary from the command line.
http://blog.zakkemble.co.uk/avrdudess-a ... r-avrdude/

Jarchis also did a mini tutorial on how to program a chip properly
http://forums.adafruit.com/viewtopic.ph ... 31#p209831

Jarchie also has some info on how to compile in his firmwares readme file:
https://github.com/johngarchie/xmas-ice ... are/README

This information along with the Adafruit info tick pointed to will give you all the tools and information needed to learn how to read, write, verify chips, either in the clock or elsewhere.

User avatar
solongsidekick
 
Posts: 31
Joined: Sun Dec 22, 2013 5:26 pm

Re: Ice Tube Clock: A few programming questions

Post by solongsidekick »

Thank you Phil! I was having a hard time figuring out how to compile the firmware, you just made my life so much easier! Thank you so much!

User avatar
phild13
 
Posts: 247
Joined: Mon Sep 10, 2012 1:05 pm

Re: Ice Tube Clock: A few programming questions

Post by phild13 »

Your welcome!

Locked
Please be positive and constructive with your questions and comments.

Return to “Clock Kits (discontinued)”