Trouble Building

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
efuentes
Posts: 35
Joined: Wed Jul 25, 2012 6:16 am

Trouble Building

Post 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
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Trouble Building

Post 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
efuentes
Posts: 35
Joined: Wed Jul 25, 2012 6:16 am

Re: Trouble Building

Post 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
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Trouble Building

Post by Giovanni »

WinARM is a bit old if I remember well, it possible it is just an older version.

Giovanni
Post Reply