在GNU / Linux上的代码块中编译ARM程序

时间:2016-03-19 16:25:17

标签: linux gcc arm

我尝试编译ARM程序 - 源代码下载http://roboty.utp.edu.pl/wp-content/uploads/2015/01/minisumo_coide_v3.zip。 我使用微处理器STM32F103RBT6(ARM Cortex-M3系列)。

我在GNU / Linux Ubuntu 14.04上工作 - 我的IDE是CodeBlocks 13.12 我的编译器是 arm-none-eabi-g(适用于ARM嵌入式处理器的GNU工具)5.2.1 20151202(发布)[ARM / embedded-5-branch revision 231848] 版权所有(C)2015 Free Software Foundation,Inc。 这是免费软件;查看复制条件的来源。没有 保证;甚至不适用于适销性或特定用途的适用性。 我是从https://launchpad.net/gcc-arm-embedded/下载

下载的

我设置了编译器标志 cortex-m3处理器[-mcpu = cortex-m3]

在其他选项中 -mcpu = cortex-m3 -mthumb

在定义中 STM32F10X_MD STM32F103RB

我遇到问题,因为我在GNU / Linux上工作,所有人都为Microsoft Windows 7(Cocox IDE)做好了准备 我不知道如何在Windows上编译,我认为在GNU / Linux上会更容易,更酷的黑客:)

我把构建日志

||=== Build: Release in minisumo (compiler: GNU GCC Compiler for ARM) ===|
stm_lib/src/misc.c||In function 'NVIC_PriorityGroupConfig':|
stm_lib/src/misc.c|99|warning: implicit declaration of function 'assert_param' [-Wimplicit-function-declaration]|
stm_lib/src/stm32f10x_adc.c||In function 'ADC_DeInit':|
stm_lib/src/stm32f10x_adc.c|182|warning: implicit declaration of function 'assert_param' [-Wimplicit-function-declaration]|
stm_lib/src/stm32f10x_dma.c||In function 'DMA_DeInit':|
stm_lib/src/stm32f10x_dma.c|111|warning: implicit declaration of function 'assert_param' [-Wimplicit-function-declaration]|
stm_lib/src/stm32f10x_gpio.c||In function 'GPIO_DeInit':|
stm_lib/src/stm32f10x_gpio.c|111|warning: implicit declaration of function 'assert_param' [-Wimplicit-function-declaration]|
stm_lib/src/stm32f10x_rcc.c||In function 'RCC_HSEConfig':|
stm_lib/src/stm32f10x_rcc.c|273|warning: implicit declaration of function 'assert_param' [-Wimplicit-function-declaration]|
stm_lib/src/stm32f10x_tim.c||In function 'TIM_DeInit':|
stm_lib/src/stm32f10x_tim.c|125|warning: implicit declaration of function 'assert_param' [-Wimplicit-function-declaration]|
stm_lib/src/stm32f10x_usart.c||In function 'USART_DeInit':|
stm_lib/src/stm32f10x_usart.c|133|warning: implicit declaration of function 'assert_param' [-Wimplicit-function-declaration]|
sumolib/rprintf.c||In function 'rsscanf':|
sumolib/rprintf.c|398|warning: assignment makes integer from pointer without a cast [-Wint-conversion]|
/home/szymon/Minisumo/gcc-arm-none-eabi-5_2-2015q4/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/lib/libc.a(lib_a-exit.o)||In function `exit':|
exit.c:(.text.exit 0x2c)||undefined reference to `_exit'|
obj/Release/cmsis_boot/startup/startup_stm32f10x_md.o||In function `zero_loop':|
startup_stm32f10x_md.c|| undefined reference to `_sdata'|
startup_stm32f10x_md.c|| undefined reference to `_sidata'|
startup_stm32f10x_md.c|| undefined reference to `_sbss'|
startup_stm32f10x_md.c|| undefined reference to `_ebss'|
obj/Release/stm_lib/src/misc.o||In function `NVIC_PriorityGroupConfig':|
misc.c|| undefined reference to `assert_param'|
obj/Release/stm_lib/src/misc.o||In function `NVIC_Init':|
misc.c|| undefined reference to `assert_param'|
misc.c|| undefined reference to `assert_param'|
misc.c|| undefined reference to `assert_param'|
obj/Release/stm_lib/src/misc.o||In function `NVIC_SetVectorTable':|
misc.c|| undefined reference to `assert_param'|
obj/Release/stm_lib/src/misc.o:misc.c|| more undefined references to `assert_param' follow|
||=== Build failed: 11 error(s), 8 warning(s) (0 minute(s), 3 second(s)) ===|

你能告诉我问题的重要性吗?

0 个答案:

没有答案