Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] GCC-Avg and pure assembly

2005-12-21 by Brian Dean

On Tue, Dec 20, 2005 at 09:24:49AM -0700, dlc@frii.com wrote:

>   I've written code using the gcc-avr compiler in C for various
> projects, but I have some code written for Tiny13 and Tiny11 chips
> that are straight assembly. Has anyone written pure assembly using
> gcc-avr?  Can we use just the assembler to write code simply in the
> gcc-avr framework that can be downloaded to an STK500 programmer
> board?

Yep, no problem.  Just remember that with a standalone pure assembly
program you need to fill certain things in that you don't need to
worry about when using C or BASIC or other high level language.  For
example, the interrupt vector table.  You gotta do this by hand.

> I've not checked to see if AVR-dude can handle the "no ram"
> chips as well as the bigger chips...

AVRDUDE doesn't care - it just downloads the given data to specified
memory.  It has no way of knowing whether you are downloading a valid
program or not.  In fact, when testing changes to AVRDUDE, I
frequently download ASCII byte patterns into flash and then use
terminal mode to dump sections of memory to make sure everything got
put where it should.

-Brian
-- 
Brian Dean
ATmega128 based MAVRIC controllers
http://www.bdmicro.com/

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.