/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / What am I doing wrong?

Username:     
Password:     
             

Forum

# 1   2014-09-11 02:41:17 What am I doing wrong?

Septimo
New member
Registered: 2014-08-19
Posts: 3

What am I doing wrong?

Hi, I have the EVO PRIMER with the STM32F429 target board. I am trying to compile the ROBO WARZ project but I keep getting an error during linking. The error shows during compiling of other applications so it is possible that it could be related to my installation. The build output is as shown below. Any help will be appreciated.

"Building C:\Users\admin\Documents\Development\STM32\EVO PRIMER\ProjectsFromSTM32Circle\RoboWarz-2.0\Project\Robo.rapp
Running: LD Linker
"C:\Program Files\Raisonance\Ride\arm-gcc\bin\arm-none-eabi-gcc.exe" -u _start -u _Minimum_Stack_Size  -mcpu=cortex-m4 -mthumb -specs=nano.specs -specs=nosys.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wl,-T -Xlinker "C:\Users\admin\Documents\Development\STM32\EVO PRIMER\ProjectsFromSTM32Circle\RoboWarz-2.0\Project\Robo.elf.ld" -Wl,-static -Wl,--gc-sections  -Wl,-Map -Xlinker "C:\Users\admin\Documents\Development\STM32\EVO PRIMER\ProjectsFromSTM32Circle\RoboWarz-2.0\Project\Robo.map" -N -nostartfiles   
C:\Program Files\Raisonance\Ride\Lib\ARM\startup_stm32f4xx.o: In function `LoopFillZerobss': 
(.text.Reset_Handler+0x26): undefined reference to `SystemInit' 
C:\Program Files\Raisonance\Ride\Lib\ARM\startup_stm32f4xx.o: In function `LoopFillZerobss': 
(.text.Reset_Handler+0x2a): undefined reference to `main' 
collect2.exe: error: ld returned 1 exit status 
Error Code: 0x1
 
Build failed "

Offline

 

# 2   2014-09-11 08:49:37 What am I doing wrong?

Etienne.C
Administrator
Registered: 2012-12-04
Posts: 71

Re: What am I doing wrong?

Hello,

In order to compile an Open4 project you shouldn't use the default script Link.
Please verify that "no" is selected in Local Settings -> LD Linker -> Scripts -> Use Default Script File.
In Script File line, comment with $1.

You will probably encounter an other compilation issue:
in Advanced ARM Options -> ARM toolsets -> FPU type, change "FPU" by "$1"

I hope it helps.

Best regards,
in

Offline

 

Board footer