Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 11 months ago.
Trying to build STM32F411RE-nucleo-gcc target with yotta - error ?
I'm just getting started with MBED. I'm trying to build the example program for an STM32F411 Nucleo board this is the output of yotta target:
I basically have two questions: 1. Why does yotta prefer to use board targets as opposed to chip targets ? 2. Why do I get the following error ?
yotta target output
(workspace) C:\Proj\temp\blinky_rev2>yotta target stm32f411re-nucleo-gcc 0.1.1 mbed-gcc 0.1.4
After issuing yotta build, i get the following error
yotta build output
(workspace) C:\Proj\temp\blinky_rev2> yotta build info: generate for target: stm32f411re-nucleo-gcc 0.1.1 at C:\Proj\temp\blinky_r ev2\yotta_targets\stm32f411re-nucleo-gcc warning: subdirectory "test" of blinky-rev2 0.0.0 at C:\Proj\temp\blinky_rev2 wa s ignored because it doesn't appear to contain any source files GCC version is: 4.9.3 CMake Warning at C:/Proj/temp/blinky_rev2/yotta_modules/uvisor-lib/source/CMakeL ists.txt:60 (message): ********************************************************************* * WARNING (uvisor-lib): unsupported platform; your code will still * * work but no security feature is provided; * * UVISOR_DISABLED is set by default * ********************************************************************* suppressing warnings from mbed-hal-st-stm32cubef4 -- Configuring done -- Generating done -- Build files have been written to: C:/Proj/temp/blinky_rev2/build/stm32f411re- nucleo-gcc [1/149] Building CXX object ym/uvisor-...Files/uvisor-lib.dir/unsupported.cpp.o FAILED: C:\yotta\gcc\bin\arm-none-eabi-g++.exe -DYOTTA_MODULE_NAME=uvisor-lib - Igenerated/include -IC:/Proj/temp/blinky_rev2 -IC:/Proj/temp/blinky_rev2/yotta_m odules/mbed-drivers -IC:/Proj/temp/blinky_rev2/yotta_modules/mbed-hal-st-stm32cu bef4 -IC:/Proj/temp/blinky_rev2/yotta_modules/mbed-hal -IC:/Proj/temp/blinky_rev 2/yotta_modules/cmsis-core -IC:/Proj/temp/blinky_rev2/yotta_modules/ualloc -IC:/ Proj/temp/blinky_rev2/yotta_modules/minar -IC:/Proj/temp/blinky_rev2/yotta_modul es/core-util -IC:/Proj/temp/blinky_rev2/yotta_modules/compiler-polyfill -IC:/Pro j/temp/blinky_rev2/yotta_modules/greentea-client -IC:/Proj/temp/blinky_rev2/yott a_modules/mbed-hal-st -IC:/Proj/temp/blinky_rev2/yotta_modules/mbed-hal-st-stm32 f4 -IC:/Proj/temp/blinky_rev2/yotta_modules/uvisor-lib -IC:/Proj/temp/blinky_rev 2/yotta_modules/cmsis-core-st -IC:/Proj/temp/blinky_rev2/yotta_modules/cmsis-cor e-stm32f4 -IC:/Proj/temp/blinky_rev2/yotta_modules/dlmalloc -IC:/Proj/temp/blink y_rev2/yotta_modules/minar-platform -IC:/Proj/temp/blinky_rev2/yotta_modules/min ar-platform-mbed -IC:/Proj/temp/blinky_rev2/yotta_modules/cmsis-core/cmsis-core -IC:/Proj/temp/blinky_rev2/yotta_modules/cmsis-core-stm32f4/cmsis-core-stm32f4 - IC:/Proj/temp/blinky_rev2/yotta_modules/mbed-hal-st-stm32f4/mbed-hal-st-stm32f4 -IC:/Proj/temp/blinky_rev2/yotta_modules/mbed-hal-st-stm32cubef4/mbed-hal-st-stm 32cubef4 -IC:/Proj/temp/blinky_rev2/yotta_modules/mbed-hal/mbed-hal -IC:/Proj/te mp/blinky_rev2/yotta_modules/mbed-drivers/mbed -fno-exceptions -fno-unwind-table s -ffunction-sections -fdata-sections -Wall -Wextra -fno-rtti -fno-threadsafe-st atics -mcpu=cortex-m4 -mthumb -D__thumb2__ -Os -g -gdwarf-3 -DNDEBUG -DTOOLCHA IN_GCC -DTOOLCHAIN_GCC_ARM -DMBED_OPERATORS -DTARGET_STM32F411RE_NUCLEO -DTARGET _STM32F411RE -DTARGET_STM32F4 -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -include "C:/P roj/temp/blinky_rev2/build/stm32f411re-nucleo-gcc/yotta_config.h" -MMD -MT ym/uv isor-lib/source/CMakeFiles/uvisor-lib.dir/unsupported.cpp.o -MF ym/uvisor-lib/so urce/CMakeFiles/uvisor-lib.dir/unsupported.cpp.o.d -o ym/uvisor-lib/source/CMake Files/uvisor-lib.dir/unsupported.cpp.o -c C:/Proj/temp/blinky_rev2/yotta_modules /uvisor-lib/source/unsupported.cpp In file included from C:/Proj/temp/blinky_rev2/yotta_modules/cmsis-core-stm32f4/ cmsis-core-stm32f4/cmsis.h:35:0, from C:/Proj/temp/blinky_rev2/yotta_modules/cmsis-core/cmsis-co re/cmsis_nvic.h:35, from C:/Proj/temp/blinky_rev2/yotta_modules/uvisor-lib/uvisor-l ib/uvisor-lib.h:23, from C:/Proj/temp/blinky_rev2/yotta_modules/uvisor-lib/source/u nsupported.cpp:17: C:/Proj/temp/blinky_rev2/yotta_modules/cmsis-core-stm32f4/cmsis-core-stm32f4/stm 32f4xx.h:154:3: error: #error "Please select first the target STM32F4xx device u sed in your application (in stm32f4xx.h file)" #error "Please select first the target STM32F4xx device used in your applicati on (in stm32f4xx.h file)" ^ In file included from C:/Proj/temp/blinky_rev2/yotta_modules/cmsis-core-stm32f4/ cmsis-core-stm32f4/stm32f4xx.h:213:0, from C:/Proj/temp/blinky_rev2/yotta_modules/cmsis-core-stm32f4/ cmsis-core-stm32f4/cmsis.h:35, from C:/Proj/temp/blinky_rev2/yotta_modules/cmsis-core/cmsis-co re/cmsis_nvic.h:35, from C:/Proj/temp/blinky_rev2/yotta_modules/uvisor-lib/uvisor-l ib/uvisor-lib.h:23, from C:/Proj/temp/blinky_rev2/yotta_modules/uvisor-lib/source/u nsupported.cpp:17: C:/Proj/temp/blinky_rev2/yotta_modules/mbed-hal-st-stm32cubef4/mbed-hal-st-stm32 cubef4/stm32f4xx_hal.h:48:32: fatal error: stm32f4xx_hal_conf.h: No such file or directory #include "stm32f4xx_hal_conf.h" ^ compilation terminated. ninja: build stopped: subcommand failed. error: command ['ninja'] failed
2 Answers
8 years, 11 months ago.
Please post this on mbed.com forum. I recall there was similar error to this one for the same target.
To answer 1st - for blinky you need a board target - to have LED1 defined, stdio defined.
posted by Martin Kojtal 26 Mar 2016