Using stm32f4 and ecos I wanted to use a newer toolchain than the one provided by ecos. I have used yagarto before together with stm32 and wanted to test this with ecos.
To change compiler you have to change the CYGBLD_GLOBAL_COMMAND_PREFIX option for your build target in ecos. If your’e like me and prefer editing manually in text files this is how I did change this option to “arm-none-eabi” instead of “arm-eabi”:
Go to your ecos installation directory and find your target
cd /opt/ecos/ecos-3.0
find . -name stm32
I manage to find my target under packages/hal/cortexm/stm32/stm32x0g_eval.
cd packages/hal/cortexm/stm32/stm32x0g_eval
Now go to the directory where your targets .cdl file is located
cd current/cdl
Time to edit the file hal_cortexm_stm32_stm32x0g_eval.cdl:
nano -w hal_cortexm_stm32_stm32x0g_eval.cdl
Change the CYGBLD_GLOBAL_COMMAND_PREFIX to “arm-none-eabi”
..
cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
display “Global command prefix”
flavor data
no_define
default_value { “arm-none-eabi” }
description ”
This option specifies the command prefix used when
invoking the build tools.”
..
Ok so now I can use “arm-none-eabi” which points to yagarto, but yagarto does not know cygwin paths so I have to use cygpath utility some how..