test_leds.hex

USB AVR Programmer and SPI interface. Adafruit's USBtinyISP.

Moderators: adafruit_support_bill, adafruit

test_leds.hex

Postby Alchemist » Thu Apr 26, 2012 12:12 am

First let me say that I am a total newbie to Arduino, Dataloggers, AVR programming, etc. I have bought and build your Datalogging shield for Arduino and USB tiny ISP. Your Tutorials are excellent and I thank you for clearing the some of the smoke from these once mysterious boxes.
I successfully connected my USBTinyISP and am communicating with the chip. I am now at the point in your USBTinyISP tutorial where I need to download the test_leds.hex file but when I do all I see is the binary :
:1000000012C02AC029C028C027C026C025C024C0CD
:1000100023C022C021C020C01FC01EC01DC01CC0E4
:100020001BC01AC019C011241FBECFEDCDBF10E0F8
:10003000A0E6B0E0E4E0F1E003C0C89531960D928F
:10004000A036B107D1F710E0A0E6B0E001C01D92E4
:10005000A036B107E1F716C0D3CF61157105810550
:10006000910579F027E630E140E050E0245030403F
:100070004040504057FFFACF615070408040904060
:10008000ECCF0895CFEDD0E0DEBFCDBF8FEF87BBC3
:1000900018BA81E088BB68EC70E080E090E0DDDFBA
:1000A00082E088BB68EC70E080E090E0D6DF84E01E
:1000B00088BB68EC70E080E090E0CFDF88E088BB30
:1000C00068EC70E080E090E0C8DF80E188BB68EC1D
:1000D00070E080E090E0C1DF80E288BB68EC70E017
:1000E00080E090E0BADF80E488BB68EC70E080E0FC
:1000F00090E0B3DF80E888BB68EC70E080E090E0DF
:04010000ACDFC7CFDA
:00000001FF
I expected to see C code which I could then compile using gcc. Can you explain what I need to do with this file?
Alchemist
 
Posts: 2
Joined: Sat Mar 10, 2012 12:22 am

Re: test_leds.hex

Postby adafruit_support_bill » Thu Apr 26, 2012 4:47 am

That is ASCII Hex. It has already been compiled and is ready for you to download.
User avatar
adafruit_support_bill
 
Posts: 16617
Joined: Sat Feb 07, 2009 9:11 am

Re: test_leds.hex

Postby Alchemist » Thu Apr 26, 2012 5:46 pm

My bad, I realize it is Hex not Binary. The problem I have is that when I click on your link to download the test_leds.hex file it opens up as a web page. It is not downloading as a file that I can save in some project directory.
I can copy and paste to a text editor and save it as a .hex file, but I get an error message from the programmer if I try to use it in that format. If there is something else I need to do with the web page that opens up when I link to this file, it should be explained in the tutorial.
I did successfully load a hex file to the attiny2313 but I had to find another tutorial blinktheled.c file which I compiled and successfully loaded the hex file on the chip.
This has been a great and very detailed tutorial, up to this point, but it just fell short at this simple link. Now that I can communicate with the uP I'm off to learn to write code for AVR's.
Alchemist
 
Posts: 2
Joined: Sat Mar 10, 2012 12:22 am


Return to USBtinyISP

Who is online

Users browsing this forum: No registered users and 2 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [114]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
BeagleBone[23]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]