ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Пятница
29 ноября
922266 Топик полностью
Сидоргек (20.05.2019 10:43, просмотров: 358) ответил Сидоргек на Попробовал скомпилить (под Виндой) сгенерированный Кубом проект для STM32F103, споткнулся об отсутствие libc_nano.
"По приколу" скопировал libc.a в libc_nano.a, получил c:\Temp\ccac2AOd.s:58: Error: selected processor does not support `blx r3' in ARM mode 
arm-kgp-eabi-gcc build/Display.o build/Comm.o build/Cat.o build/Meter.o build/RadioCpu.o build/main.o build/freertos.o build/stm32f1xx_it.o build/stm32f1xx_hal_msp.o bu
ild/stm32f1xx_hal_gpio_ex.o build/stm32f1xx_ll_fsmc.o build/stm32f1xx_hal_sram.o build/stm32f1xx_hal_tim.o build/stm32f1xx_hal_tim_ex.o build/stm32f1xx_ll_usart.o build
/stm32f1xx_ll_gpio.o build/stm32f1xx_ll_dma.o build/stm32f1xx_hal.o build/stm32f1xx_hal_rcc.o build/stm32f1xx_hal_rcc_ex.o build/stm32f1xx_hal_gpio.o build/stm32f1xx_ha
l_dma.o build/stm32f1xx_hal_cortex.o build/stm32f1xx_hal_pwr.o build/stm32f1xx_hal_flash.o build/stm32f1xx_hal_flash_ex.o build/stm32f1xx_ll_rcc.o build/stm32f1xx_ll_ut
ils.o build/stm32f1xx_ll_exti.o build/system_stm32f1xx.o build/heap_4.o build/port.o build/croutine.o build/event_groups.o build/list.o build/queue.o build/tasks.o buil
d/timers.o build/cmsis_os.o build/stm32f1xx_hal_timebase_tim.o build/stm32f1xx_hal_adc.o build/stm32f1xx_hal_adc_ex.o build/startup_stm32f103xe.o -mcpu=cortex-m3 -mthum
b   -specs=nano.specs -TRelease.ld  -lc -lm -lnosys  -Wl,-Map=build/App.map,--cref -Wl,--gc-sections -o build/App.elf
c:\Temp\ccac2AOd.s: Assembler messages:
c:\Temp\ccac2AOd.s:58: Error: selected processor does not support `blx r3' in ARM mode
c:\Temp\ccac2AOd.s:111: Error: selected processor does not support `blx r3' in ARM mode
lto-wrapper.exe: fatal error: c:\Programs\ArmKGP\bin\arm-kgp-eabi-gcc.exe returned 1 exit status
compilation terminated.
c:/programs/armkgp/bin/../lib/gcc/arm-kgp-eabi/10.0.0/../../../../arm-kgp-eabi/bin/ld.exe: error: lto-wrapper failed
collect2.exe: error: ld returned 1 exit status
Makefile:215: recipe for target `build/App.elf' failed
make: *** [build/App.elf] Error 1