Glomation
 
Advanced Search
Welcome, Guest. Please login or register.

Login with username, password and session length
May 22, 2012, 02:33:11 AM
News: Glomation introduces new GECM-9G25 SODIMM system on module
Pages: [1]
Topic Tools  
Read December 09, 2009, 02:28:35 PM #0
land

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.
 
Read December 09, 2009, 04:01:22 PM #1
land

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]
Jump to:  

Theme Update by Runic Warrior Originally created by m3talc0re