Re: Eclipse - Chibios setup problem
Posted: Fri Jun 22, 2012 5:40 pm
After making the change you suggested in Discovery Options (set to automate discovery of paths and symbols & Discovery profile to GCC per project scanner info profile) the default compiler invocation command is just "gcc" and compiler invocation arguments is "-E -P -v -dD "${plugin_state_location}/${specs_file}"". With this setting, everything built without error, but with a couple of warnings:
Description: Error launching external scanner info generator (gcc -E -P -v -dD C:/program-files-arm/ChibiOS_2.4.1/.metadata/.plugins/org.eclipse.cdt.make.core/specs.c -mcpu=cortex-m4 -O2 -mno-thumb-interwork)
Resource: ARMCM4-STM32F407-DISCOVERY
Location: [Discovery Options] page in project properties
Type: C/C++ Problem
and
Description: Program 'gcc' is not found in $PATH
Resource: ARMCM4-STM32F407-DISCOVERY
Location: [Discovery Options] page in project properties
Type: C/C++ Problem
The yagarto installation automatically sets the path to: C:\program-files-arm\yagarto\bin and not having something named "gcc.exe" along that path appears to be the problem.
Candidate gcc executables seem to be:
C:\program-files-arm\yagarto\arm-none-eabi\bin\gcc
or
C:\program-files-arm\yagarto\bin\arm-none-eabi-gcc
or
C:\program-files-arm\yagarto\bin\arm-none-eabi-gcc-4.6.2
Not sure if there is any difference between them, but I changed the compiler invocation command to "arm-non-eabi-gcc.exe" and things built without the above mentioned warnings (the only remaining warning which doesn't seem important is "no return statement in function returning non-void [-Wreturn-type] main.c /ARMCM4-STM32F407-DISCOVERY line 189 C/C++ Problem").
Does this seem correct?
Other than stumbling around CDT, are there any good tutorials which help you understand CDT at a beginners level? Many thanks for your patient help.
Description: Error launching external scanner info generator (gcc -E -P -v -dD C:/program-files-arm/ChibiOS_2.4.1/.metadata/.plugins/org.eclipse.cdt.make.core/specs.c -mcpu=cortex-m4 -O2 -mno-thumb-interwork)
Resource: ARMCM4-STM32F407-DISCOVERY
Location: [Discovery Options] page in project properties
Type: C/C++ Problem
and
Description: Program 'gcc' is not found in $PATH
Resource: ARMCM4-STM32F407-DISCOVERY
Location: [Discovery Options] page in project properties
Type: C/C++ Problem
The yagarto installation automatically sets the path to: C:\program-files-arm\yagarto\bin and not having something named "gcc.exe" along that path appears to be the problem.
Candidate gcc executables seem to be:
C:\program-files-arm\yagarto\arm-none-eabi\bin\gcc
or
C:\program-files-arm\yagarto\bin\arm-none-eabi-gcc
or
C:\program-files-arm\yagarto\bin\arm-none-eabi-gcc-4.6.2
Not sure if there is any difference between them, but I changed the compiler invocation command to "arm-non-eabi-gcc.exe" and things built without the above mentioned warnings (the only remaining warning which doesn't seem important is "no return statement in function returning non-void [-Wreturn-type] main.c /ARMCM4-STM32F407-DISCOVERY line 189 C/C++ Problem").
Does this seem correct?
Other than stumbling around CDT, are there any good tutorials which help you understand CDT at a beginners level? Many thanks for your patient help.