Page 1 of 1

Trouble Building

Posted: Wed Jul 25, 2012 6:31 am
by efuentes
Hello,

I'm just getting started with chibios/rt 2.4.1 and my STM3220G-EVAL board. I have set up eclipse and my code sourcery toolchain, but I am having trouble building my project, specifically when it tries to use objdump. Turning on the verbose option in the make file gives the following output:

arm-none-eabi-objcopy -O ihex build/ch.elf build/ch.hex
arm-none-eabi-objcopy -O binary build/ch.elf build/ch.bin
arm-none-eabi-objdump -x --syms build/ch.elf > build/ch.dmp
/bin/sh: /c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin/arm-none-eabi-objdump: Invalid argument

I have done some playing around with the makefile and I think the issue is in redirecting the output to a file. That is to say,

arm-none-eabi-objdump -x --syms build/ch.elf

dumps the output to the console with out any problems, but it won't save the output when I try send it to a file.

Any help would be appreciated :)

Thanks,
Erick

Re: Trouble Building

Posted: Wed Jul 25, 2012 7:10 am
by Giovanni
Hi,

It is possible this is related to the "sh" you are using, I suggest to try the gnu utilities in "yagarto tools", www.yagarto.de, make sure they are first in you PATH environment variable.

Giovanni

Re: Trouble Building

Posted: Wed Jul 25, 2012 1:51 pm
by efuentes
It seems like that solved my issue. It's now complaining that it couldn't find /tmp, but it seems to run to completion.

I was using sh from winARM before. Any idea why it wouldn't work?

Thanks,
Erick

Re: Trouble Building

Posted: Wed Jul 25, 2012 3:09 pm
by Giovanni
WinARM is a bit old if I remember well, it possible it is just an older version.

Giovanni