Advanced Search
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
May 22, 2012, 02:33:11 AM
Home
Help
Calendar
Login
Register
News
: Glomation introduces new GECM-9G25 SODIMM system on module
Glomation
»
Peer Support Forums
»
GESBC-9302
»
ASM error
« previous
next »
Pages: [
1
]
Topic Tools
Topic Tools
Send this topic
Print
December 09, 2009, 02:28:35 PM
#0
land
land
Show land's last posts.
Show general stats for land.
Full Member
Posts: 2
ASM error
Hi there, i have troubles with the ADC example code. Each time i tried to compile it, i have this error:
main.c: Assembler messages:
main.c:44: Error: no such instruction: `strh %ax,[ %edx]'
main.c:34: Error: no such instruction: `ldrh %ax,[ %eax]'
main.c:55: Error: no such instruction: `ldr %eax,[ %eax]'
main.c:77: Error: no such instruction: `ldrb %al,[ %eax]'
main.c:65: Error: invalid char '[' beginning operand 2 `[ %edx]'
make: *** [main] Error 1
I tried do the same in other computer and everything goes right. I don know what can be the problem in my personal computer. My IDE is Eclipse.
Thanks for help.
Regards.
December 09, 2009, 04:01:22 PM
#1
land
land
Show land's last posts.
Show general stats for land.
Full Member
Posts: 2
Re: ASM error
Ok, i just figured out. The problem was in my makefile:
CC_ARM = arm-unknown-linux-gnu-gcc
all:
main
main:
compila clean copy2
compila:
$(CC_ARM) *.c -o ADC.out
clean:
rm -rf *.a *.o *~
copy2:
cp *.out /var/lib/tftpboot/
Words with red font was the mistake. Erase it solves the problem.
Bye
Pages: [
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> Announcements
=> General Discussion
=> Programming Tips, Recommendded Readings, etc.
-----------------------------
Peer Support Forums
-----------------------------
=> GESBC-9302
=> GESBC-9260
=> GESBC-9G20
=> GESBC-2440
=> GESBC-9315
Loading...