original ice tube kit hex

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
russell 27
 
Posts: 242
Joined: Thu Sep 12, 2013 3:59 pm

original ice tube kit hex

Post by russell 27 »

Is there any place I can download the original hex that comes flashed in the kit, maybe even the source code for it. I want to save this before I start playing around. The current version on GiTHUB has the gps and Zone setting in the hex. I'm not familiar with C like I am assembly, and not familiar with AVR's like PICS, so a plan B is essential here from my perspective. I like the simplicity of the original 168 flash. It looks to be very easy with avrdude using a __:r:__ instead of __:w:__, in the command line. But I believe it is essential to deactivate the memory erase first, so I don't erase exactly what I'm trying to read. Only one chance to do it right. I suppose I could practice on my test 168's. Any advice greatly appreciated.

I want to thank everyone who has helped on this forum. I've been interested in electronics since I was about ten, wish I was closer to that now. Was interested in this kit immediately, how can you not like this tube. Also a great way to learn C and AVR's with a project I already have great interest in. The information here is quite excellent on how to use AVRDUDE. I don't know how many PIC people there are out there, but getting the hex into the chip is much different, as well as reading. Fuses for one, are set with configuration settings right at the beginning of the program. Can any tell me what the little boxes with the + and -, on the left side of the programming window, are for. Compresses varying lines of code, not used in assembly language.


Nostrovia


Russell

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

Re: original ice tube kit hex

Post by adafruit_support_rick »

The current firmware is linked on the Downloads page:
http://learn.adafruit.com/ice-tube-clock-kit/downloads

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

Re: original ice tube kit hex

Post by phild13 »

There are two branches. GPS and Master on GitHub. Use the Master branch (link below) for your research, base firmware, making new boards etc.. You can use the usbtinyisp to read/write to the chip while it is in the clock. jarchie has some good instructions on how to do this properly on his firmware GitHub page as well as in the forum. Unless you brick the chip while messing with it, just flash the original firmware back again. Better yet, you might strongly consider getting a couple of blank ATMEGA328p chips from DigiKey (or your favorite place) to play with as it is a direct pin for pin replacement for the 128, has more flash memory area, and is actually cheaper than the 168 that comes with the clock. Then you can take the original 168 out for safe keeping.

I would stay away from any chips that already have the Arduino bootloader installed as they have the fuse set to use an external 16mhz clock, and you would need an Arduino Uno or something like that to reprogram them (to remove the bootloader and change fuse settings) before they would be useable in the clock. For best compatibility with all firmwares, make sure any blank chip you get is the ATMEGA328P version and not the ATMEGA328 version of the chip.

Here are a couple DigiKey links to the correct chips to use:
ATMEGA328P-PU
http://www.digikey.com/product-detail/e ... ND/1914589

The original ATMEGA168V-10PU-ND
http://www.digikey.com/product-detail/e ... -ND/735447


GitHub link for icetube firmware, board files:
https://github.com/adafruit/Ice-Tube-Clock

Here are a couple of probably the most popular firmwares that you can use, or just use to look at the files of for ideas, or programming style
Xmas-icetube firmware
http://forums.adafruit.com/viewtopic.php?f=41&t=34924
https://github.com/johngarchie/xmas-icetube/

and another version of firmware from someone else
http://forums.adafruit.com/viewtopic.php?f=41&t=25108

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

Re: original ice tube kit hex

Post by adafruit_support_rick »

Thanks, Phil!

User avatar
russell 27
 
Posts: 242
Joined: Thu Sep 12, 2013 3:59 pm

Re: original ice tube kit hex

Post by russell 27 »

Thank you Phil

I've seen the current firmware link. The hex in there is different than the one from the kit. By navigating the code, almost an infinite amount of program variations could be made into HEX. I'm not versed in C yet, so what I really want is a hard copy of the HEX, AS IS, from from my original kit chip, to have on hand. Once that's gone it's gone. I may be missing something here. What I want to do is read the hex from my original chip and save it, maybe not possible. With a pic this is very easy, unless the chip is copy protected. I have learned having an original hex saved, on hand, can be a life saver.

Thanks

Russell

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

Re: original ice tube kit hex

Post by adafruit_support_rick »

You can download the contents of flash using avrdude and a USBtinyISP. See this Evil Mad Scientist tutorial:
http://www.evilmadscientist.com/2011/av ... -contents/

User avatar
russell 27
 
Posts: 242
Joined: Thu Sep 12, 2013 3:59 pm

Re: original ice tube kit hex

Post by russell 27 »

Thank you Rick

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

Return to “Clock Kits (discontinued)”