View Full Version : AVRstudio for Stand Alone help.
Penfold
06-02-2009, 06:13 PM
Yesterday, I downloaded AVRStudio 4.16 with the Service pack. I also have the ASM file V2.00 to be tweaked. I have no idea where to start. Is there a walkthrough for tweaking the stand alone message or should I research the manual I believe you can download from ATMEL? Also, once I get the code changed am I going to have to reprogram the fuses, or is that a one shot deal?
Hi Penfold
The best info currently availabile on DIYC was described by NRomanelli here (http://www.doityourselfchristmas.com/forums/showthread.php?t=4618)
What you're trying to do is change the software inside the Triks-C to output a different stand alone pattern.
So there are 3 key steps you'll need to master.
1) Understand how to edit and reassemble the software ( turn the edited .asm file inot a .hex file you can load onto the chip). That's what AVRstudio will do for you. Its easy... (with the usual caveat that its only easy once you know how!) But its fundamentaly a standard process that is not TRIKSC specific at all. There's plenty of guides out there to help you figure it out.
2) Understand how to change the data to put out the message you want... see Nick's post above for a neat tool that generates the data for you frame by frame that can be cut and pasted back into the .asm file. He also points out a couple of variables in the code that you may wish to play with to change the number of frames and the speed of scrolling.
3) (re) program the .hex file into the Chip. That's where your atmel programmer and AVRDUDE comes in...
Hope that helps get you started.
Tim
PS - you only need to program the fuses once.
Penfold
06-03-2009, 09:44 AM
Thanks for the info Tim. Apparently I am still getting into problems when I am trying in import the ASM file. I have gone through the Project wizard to try to set it up, but I can't see the code. I see the ASM file appear in a small window on the upper left corner of AVRStudio, but have been unsuccessful in pulling up the code. The message window on the bottom says that I have the asm filed loaded, yet I don't know where I can go to play around with the code. Also the build option (icon) is grayed out and I can't access that. I tried to go through the debug option but keep running into brick walls. What "platform" should I choose (I believe it prompts me in the project wizard)? It's probably a simple little detail I left out of the equation.
Sorry to be so bothersome.
budude
06-03-2009, 01:23 PM
I downloaded the same version of AVR Studio (and SP).
1) I started with the Wizard and selected the "Atmel AVR Assembler", created a project name and unchecked 'create initial file' - select Next
2) Select the "AVR Simulator" and then select ATtiny2313 from the right side list - now you should have a file selector thingy in the top/left
3) Source Files->Add Files to Project and select the .asm file
4) Now the Build and Build/Run options should not be greyed out and you should be able to build it.
I was using the V1 file found earlier in another thread - where is the newer code located?
** Never mind - I found it... **
Looking forward to further 'playing around' with the Atmel MCUs - haven't programmed anything for quite a while - should be fun! :p
Brian
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.