Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] help

2008-02-14 by David VanHorn

Indeed there are, the asm should have caught that.
Also, the reset int vector should be on top of the list, with "rjmp start"

So it would look like this:

reset:  rjmp Start

(rest of int vector table etc)


Start:
   Init code goes here

Main
   App code goes here
   rjmp main


On Thu, Feb 14, 2008 at 5:26 PM, James Wagner <wagnerj@proaxis.com> wrote:
> There are two START labels!
>
> Jim
>
>
> On Feb 14, 2008, at 2:11 PM, Tom wrote:
>
> > I am confounded and flummoxed. I have an assembly program I am
> > attempting to build in AVRStudio, but the assembler is ignoring my
> > code. I don't get it. I have compared it to other code I have which
> > assembles just fine, and can find no difference which explains this
> > behaviour. The editor is highlighting syntax appropriately, so I am
> > lost:
> >
> > include "tn25def.inc"
> >
> > ;
> > ; interrupt table
> > ;
> >
> > org 0 ; starting address
> >
> > START:
> > INT0: rjmp DUMMY ; external Interrupt 0
> > PCIO: rjmp DUMMY ; pin change interrupt 0
> > OC1A: rjmp DUMMY ; timer/counter 1 mompare match 1A
> > OVF1: rjmp DUMMY ; timer/counter 1 overflow
> > OVF0: rjmp DUMMY ; timer/counter 0 overflow
> > ERDY: rjmp DUMMY ; EEPROM ready interrupt
> > ACI: rjmp DUMMY ; Analog comparator interrupt
> > ADCC: rjmp DUMMY ; ADC conversion ready interrupt
> > OC1B: rjmp DUMMY ; timer/counter 1 compare match B
> > OC0A: rjmp DUMMY ; timer/counter 0 ocmpare match A
> > OC0B: rjmp DUMMY ; timer/counter 0 compare match B
> > WDT: rjmp DUMMY ; watchdog timer interrupt
> > USI_START: rjmp DUMMY ; USI start interrupt
> > USI_OVF: rjmp DUMMY ; USI overflow interrupt
> >
> > ;
> > ; end interrupt table
> > ;
> >
> > ;
> > ; constant defintions
> > ;
> >
> > equ TRUE = 0xff
> > equ FALSE = !TRUE
> > equ DIV = 0x28 ; divisor for timer readings
> >
> > START:
> >
> > ldi SPL, SRAM_START ; load stack pointer
> >
> > SO, what am I doing wrong? Assembler says the source file is empty
> > (??)
> >
> > avrFrfeak
> >
> >
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>

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.