hex file

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
somebody

hex file

Post by somebody » Mon Dec 17, 2007 12:48 am

Nur eine kleine Frage bezüglich des PowerSwitch Projektes. Das hex File in der zip zum Projekt, ist das die fertige Firmware für den empfohlenen ATTiny 2313? Muss für diesen Microcontroller die Firmware modifiziert werden oder kann man diese so verwenden wie sie vorliegt?
Nehmt mir die blöde Frage nicht krum, kenne mich da halt nicht aus.

Vielen Dank

Guest

Post by Guest » Mon Dec 17, 2007 4:19 pm

the same question in english

the hex file included in the powerswitch project is that a ready to programm firmware for the ATTiny 2313 or just an example? If somebody have a firmware that is ready to be written into an ATTiny 2313, could you please send it to me (googy@web.de), please.

thx

Guest

Post by Guest » Sat Dec 22, 2007 2:36 am

come on
i'm sure somebody knows the answer

gert
Rank 1
Rank 1
Posts: 27
Joined: Sat Oct 20, 2007 5:58 pm

Post by gert » Sat Dec 22, 2007 9:52 am

Hallo Somebody

Ja, Powerswitch funktioniert problemlos mit dem attiny2313. Die Fuse-Bytes sollten wie in MAKEFILE beschrieben gesetzt werden.

<english>Yes, Powerswitch will work right away with attiny2313. The fuse bytes should be set as described in MAKEFILE.</english>

/Gert

PS: please check http://forums.obdev.at/viewtopic.php?t=1056

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Sat Dec 22, 2007 7:46 pm

The hex file has been built with the makefile which ships with the project. The target device there is the at90s2313. However, since the Tiny2313 is binary compatible with the at90s2313, you can use the same hex file for the Tiny2313. But be sure to run "make fuse_tiny2313" to set the fuse values.

Guest

Post by Guest » Sun Dec 23, 2007 8:17 pm

thanks for the info
i wanted to know this because i don not understand assembler, but i know somebody who can programm 2313 for me. To do this I have to give him a ready to be written firmware. Now I can do this

an I have the at90s2313.

many thanks

andy
Posts: 6
Joined: Sat Dec 15, 2007 12:11 am
Contact:

Post by andy » Mon Dec 24, 2007 12:10 am

Anonymous wrote:wanted to know this because i don not understand assembler, but i know somebody who can programm 2313 for me.


There is no need to understand assembler if you want to use this library. The only thing you need is C and AVR knowledge.

Use WInAVR if you are using MS Win, build a ISP programmer (stk200, usbasp, AVR-Doper...) then you are able to compile and program the examples. HTH Andy

Guest

Post by Guest » Mon Dec 24, 2007 3:34 am

but if i dont even want to change the firmware and the circuit (with the described AT90S2313) then i can use the "main.hex" file contained in the zip archive of the powerswitch download?
are there (in main.hex) the fuse bits included? or should they be set in another way

it should be as simple as possible (it is easier fpr me to order another µController then recompiling the firmware) and then if the first device works, maybe then I could think about changes

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Mon Dec 24, 2007 11:21 am

You can use the hex file as is, but the fuse values are NOT included. They must be flashed with a separate command, see the respective Makefile target. Setting fuses is only required for the ATTiny2313, not for the AT90S2313.

Guest

Post by Guest » Mon Dec 24, 2007 12:22 pm

thanks

Post Reply