does anybody know why i get : Error[Og010]: Inline assembler instruction does not have a unique size: "jmp $FC8C;" when i put in my C the line: asm("jmp $FC8C;") ; // jump to external code thanks, avram --------------------------------- Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage!
[msp 430] IAR C - Error[Og010]:
Started by ●September 30, 2004
Reply by ●September 30, 20042004-09-30
Doing the rounds of MSP430 development environments then, aren't we? ;-) asm("mov.w #0xfc8c, pc"); -- Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk CrossWorks for MSP430, ARM, and (soon) Atmel AVR processors > -----Original Message----- > From: avram ionut [mailto:avramionut_m@avra...] > Sent: 30 September 2004 13:01 > To: MSP 430 > Subject: [msp430] [msp 430] IAR C - Error[Og010]: > > does anybody know why i get : > Error[Og010]: Inline assembler instruction does not have a > unique size: "jmp $FC8C;" > when i put in my C the line: > asm("jmp $FC8C;") ; // jump to external code > > thanks, > avram > > > --------------------------------- > > -------------------------- > ------~-> > > . > > > Yahoo! Groups Links > > > > > > >
Reply by ●September 30, 20042004-09-30
my mistake: i foud jmp make unconditional jump in range -511 to +512. so i used br. new problem: the error is present on asm("jmp 1"); but not on asm("jmp 0"); (infinite loop i believe) avram ionut <avramionut_m@avra...> wrote: does anybody know why i get : Error[Og010]: Inline assembler instruction does not have a unique size: "jmp $FC8C;" when i put in my C the line: asm("jmp $FC8C;") ; // jump to external code thanks, avram --------------------------------- . --------------------------------- Do you Yahoo!? Yahoo! Mail - You care about security. So do we.
Reply by ●September 30, 20042004-09-30
just the important ones. at one moment i was planning to build one myself so ... avram -------- Paul Curtis <plc@plc@...> wrote:Doing the rounds of MSP430 development environments then, aren't we? ;-) asm("mov.w #0xfc8c, pc"); -- Paul Curtis, Rowley Associates Ltd http://www.rowley.co.uk CrossWorks for MSP430, ARM, and (soon) Atmel AVR processors > -----Original Message----- > From: avram ionut [mailto:avramionut_m@avra...] > Sent: 30 September 2004 13:01 > To: MSP 430 > Subject: [msp430] [msp 430] IAR C - Error[Og010]: > > does anybody know why i get : > Error[Og010]: Inline assembler instruction does not have a > unique size: "jmp $FC8C;" > when i put in my C the line: > asm("jmp $FC8C;") ; // jump to external code > > thanks, > avram > > > --------------------------------- > > -------------------------- > ------~-> > > . > > > . --------------------------------- Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers!
Reply by ●September 30, 20042004-09-30
> does anybody know why i get :
> Error[Og010]: Inline assembler instruction does not have a unique
> size: "jmp $FC8C;"
> when i put in my C the line:
> asm("jmp $FC8C;") ; // jump to external code
Try to use 'asm("BR #0xFC8C")' instead. The BR can jump to
the entire
memory range whereas JMP can't.
-- Anders Lindgren, IAR Systems
--
Disclaimer: Opinions expressed in this posting are strictly my own and
not necessarily those of my employer.