Page 1 of 1
Posted: 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.
Posted: 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 (email@example.com
Posted: Sat Dec 22, 2007 2:36 am
i'm sure somebody knows the answer
Posted: Sat Dec 22, 2007 9:52 am
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>
PS: please check http://forums.obdev.at/viewtopic.php?t=1056
Posted: 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.
Posted: 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.
Posted: 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
Posted: 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
Posted: 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.
Posted: Mon Dec 24, 2007 12:22 pm