| Author |
Message |
|
|
Posted: Jan 27, 2012 - 08:18 PM |
|

Joined: Jun 10, 2009
Posts: 26
|
|
I'm trying to write a script using the 'atprogram' command line tool to automatically program my at32uc3a1128 device including the flash, fuses, lockbits and security bit. I see that this is most easily accomplished by programming an .elf file, but I dont know how to insure that the fuses and security bits are properly set in the .elf.
The atprogram tool can support programming fuses and lockbits, but I dont see a setting fot the security bit.
There is some obscure reference in the help about "Creating ELF files with other memory types, but I couldnt find specifics on my particular device.
Can anyone point me in right direction?
Thanks!! |
|
|
| |
|
|
|
|
|
Posted: Jan 27, 2012 - 08:43 PM |
|

Joined: Jun 10, 2009
Posts: 26
|
|
Update: I missed the 'secure' option in the atprogram list of commands. So this will solve my immediate problem.
However, it would still be nice to know how to set the fuses and lockbits (and security bit) in the .elf file.
Thanks. |
|
|
| |
|
|
|
|
|
Posted: Jan 30, 2012 - 06:22 PM |
|

Joined: Jun 10, 2009
Posts: 26
|
|
I have a follow up question too:
Is the command line programmer available as a seperate download anywhere? Or do my mfg machines need to have full blown avr studio 5.1? |
|
|
| |
|
|
|
|
|
Posted: Feb 02, 2012 - 06:33 PM |
|

Joined: Aug 02, 2004
Posts: 3
|
|
hi,
You 're not alone in your desert.
But there is only questions here.
I think you can take the .elf build by avr studio.
But you're wright, it will be nice to avoid the installation for production. |
|
|
| |
|
|
|
|
|
Posted: Feb 02, 2012 - 08:10 PM |
|

Joined: May 24, 2011
Posts: 266
Location: Berlin
|
|
|
RustyBlazerDude wrote:
I have a follow up question too:
Is the command line programmer available as a seperate download anywhere? Or do my mfg machines need to have full blown avr studio 5.1?
On linux host I'd say just read the sticky toolchain howto:
http://www.avrfreaks.net/index.php?name ... highlight=
What I can tell is that avr32studio (available also for windows) comes with the command line tools (it uses them as a graphical frontend).
I did extract avr32program.exe from the windows version to support our customer that only has windows available and it works. You need some additional xml files and dlls.
You need to keep the folder structure,
write your programming skript and you're fine.
.
|-- AVRJungoUSB.exe
|-- bin
| |-- avr32program.exe
| |-- libavr32ocd.dll
| |-- libavr32program.dll
| |-- libavrtools.dll
| `-- libintl.dll
|-- howto.txt
|-- program.bat
`-- share
. `-- avr32
. `-- uc3c0512c.xml
-sb |
|
|
| |
|
|
|
|
|