Topic : Problem with Transferring Program

Forum : ARM

Original Post
Post Information Post
March 13, 2009 - 6:35pm
Guest

I have a program that was given to me that was made in IAR. This is the first time I've played around with Ride7. This is also the first time I've programmed an ARM chip. I do have experience with ATMEL, and C# programming, though. I'm trying to get the program to run in RIDE7, but I've come across this error that I can't seem to figure out. I've found the file STM32F10x_COMMON.ld and put it in an inluded folder, but it still doesn't work:


/*****************************************
Building C:\ROOT\Raisonance\STM32_ACIM\STM32_ACIM.rapp . Running: LD
\"C:\Program Files\Raisonance\Ride\arm-gcc\bin\arm-none-eabi-gcc.exe" -mcpu=cortex-m3 -mthumb -Wl,-T -Xlinker "C:\ROOT\Raisonance\STM32_ACIM\Output\STM32_ACIM.elf.ld" -u _start -Wl,-static -Wl,--gc-sections -nostartfiles -Wl,-Map -Xlinker "C:\ROOT\Raisonance\STM32_ACIM\lst\STM32_ACIM.map"
c:/program files/raisonance/ride/arm-gcc/bin/../lib/gcc/arm-none-eabi/4.2.1/../../../../arm-none-eabi/bin/ld.exe: cannot open linker script file STM32F10x_COMMON.ld: No such file or directory
collect2: ld returned 1 exit status

Build failed
/*****************************************

Any help would be much appreciated.

Thanks,

Timothy

Replies
Post Information Post
+1
0
-1
March 16, 2009 - 11:01am
Raisonance Support Team

Hi Tim,

From your linker command line, it looks like your project uses a single .ld file. Did you check your "C:\ROOT\Raisonance\STM32_ACIM\Output\STM32_ACIM.elf.ld" file? You can open it in an editor (Ride7 would be just fine) and read the linker directive from it. At a given point it will probably include another file "STM32F10x_COMMON.ld" that does not exist on your machine in the specific directory. You must then correct the path. The default is C:\Program Files\Raisonance\Ride\Lib\ARM\STM32F10x_COMMON.ld, but should be adapted to your own machine.

Regards,
Bruno

+1
0
-1
March 16, 2009 - 11:21am
Raisonance Support Team

Hi,

The ".elf.ld" file ("STM32_ACIM.elf.ld" in your case) is generated by Ride at each link.
It includes some sub-scripts that depend on the linker options of the project.

Are you using the default linker script in the linker options in your project?

Please try to compile one of the examples from Ride and tell us if it works.
(\Examples\ARM\REva\STM32F103_Toggle\...)

Best Regards,

Vincent