test_leds.hex

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

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
Alchemist
 
Posts: 2
Joined: Sat Mar 10, 2012 1:22 am

test_leds.hex

Post by Alchemist »

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?

User avatar
adafruit_support_bill
 
Posts: 88136
Joined: Sat Feb 07, 2009 10:11 am

Re: test_leds.hex

Post by adafruit_support_bill »

That is ASCII Hex. It has already been compiled and is ready for you to download.

Alchemist
 
Posts: 2
Joined: Sat Mar 10, 2012 1:22 am

Re: test_leds.hex

Post by Alchemist »

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.

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

Return to “USBtinyISP”