Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
RustyBlazerDude
PostPosted: Jan 27, 2012 - 08:18 PM
Rookie


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!!
 
 View user's profile Send private message  
Reply with quote Back to top
RustyBlazerDude
PostPosted: Jan 27, 2012 - 08:43 PM
Rookie


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.
 
 View user's profile Send private message  
Reply with quote Back to top
RustyBlazerDude
PostPosted: Jan 30, 2012 - 06:22 PM
Rookie


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?
 
 View user's profile Send private message  
Reply with quote Back to top
hdaniel
PostPosted: Feb 02, 2012 - 06:33 PM
Newbie


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.
 
 View user's profile Send private message  
Reply with quote Back to top
sambrown
PostPosted: Feb 02, 2012 - 08:10 PM
Hangaround


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
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits