From: Juraj <duro@gsm.eurotel.sk>
To: insight@sources.redhat.com
Subject: [Fwd: [avr-gcc-list] problem with compiling avrmon]
Date: Mon, 27 Oct 2003 20:52:00 -0000 [thread overview]
Message-ID: <1067288106.3974.3.camel@nezabudka> (raw)
Hi all..
Because there was no response on my message on avr-gcc list, I am trying
to send it here. I hope, it could be succesfull.
Many thanks, for your suggestions...
I have some problem with compiling TARGET part of avrmon-stk200-0.6.0.
I am not familiar with avr inline assembler, and I was trying to
understand it, I can not recognize what is the problem.
Target part consist of
main.c
monitor.c
monitor.h
I have set paths to avr tools, and try to compile by typing make, as is
written in INSTALL file, it gives this error:
[durec@nezabudka target]$ make
/usr/bin/avr-gcc -g -Wall -mmcu=at90s8515 -O -I/usr/avr/include -c -o
monitor.o monitor.c
monitor.c: In function `_overflow0_':
monitor.c:333: warning: asm operand 0 probably doesn't match constraints
monitor.c:337: warning: asm operand 0 probably doesn't match constraints
monitor.c:340: warning: asm operand 1 probably doesn't match constraints
monitor.c:333: error: impossible constraint in `asm'
monitor.c:337: error: impossible constraint in `asm'
monitor.c:340: error: impossible constraint in `asm'
make: *** [monitor.o] Error 1
Here is part of monitor.c:
asm volatile ("_stepping_:push r31");
//line 333:
asm volatile
("in r31, %0\n"
"ori r31, %1\n"
"out %0, r31" :: "I" (TIMSK), "I" (BV (TOIE0)));
//line 337:
asm volatile /* set timer 0 counter */
("ldi r31,-4\n"
"out %0, r31" :: "I" (TCNT0));
//line 340:
asm volatile /* start timer 0 clocks */
("ldi r31, %0\n"
"out %1, r31" :: "I"(TIMER0_CK), "I"(TCCR0));
asm volatile
("pop r31\n"
"andi r30,0x7f\n" /* clear I flag */
"out __SREG__, r30\n"
"pop r30\n"
"reti");
Could someone help to solve this problem?
Many thanks,
Duro.
--
----------------------------
email: duro@gsm.eurotel.sk
durec@szm.sk
http:// durec.szm.sk
reply other threads:[~2003-10-27 20:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1067288106.3974.3.camel@nezabudka \
--to=duro@gsm.eurotel.sk \
--cc=insight@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).