Я пытаюсь скомпилировать и сгенерировать код для STM32F103RBT6, используя ARM Cross GCC.
Я использую набор инструментов: GNU MCU Eclipse Embedded GCC: 8 2019-q3-update Инструменты сборки: 2.12-20190422-1053
Это вывод из консоли:
11:17:59 **** Build of configuration Release for project Test ****
make all
make --no-print-directory pre-build
arm-none-eabi-gcc --version
arm-none-eabi-gcc (GNU Tools for Arm Embedded Processors 8-2019-q3-update) 8.3.1 20190703 (release) [gcc-8-branch revision 273027]
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
make --no-print-directory main-build
Building file: ../src/main.c
Invoking: GNU ARM Cross C Compiler
arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -g -std=gnu11 -MMD -MP -MF"src/main.d" -MT"src/main.o" -c -o "src/main.o" "../src/main.c"
Finished building: ../src/main.c
Building target: Test.elf
Invoking: GNU ARM Cross C Linker
arm-none-eabi-gcc -mcpu=cortex-m3 -mthumb -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -g -Xlinker --gc-sections -Xlinker -flto -ffreestanding -nostdlib -Wl,-Map,"Test.map" -o "Test.elf" ./src/main.o
c:/winarm/gnu arm eclipse/gnu arm toolchain/8 2019-q3-update/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol _start; defaulting to 00008000
Finished building target: Test.elf
make --no-print-directory post-build
Generate S19 File
arm-none-eabi-objcopy -O srec "C:/WinARM/Testprojekt/Debug/Test." "Test.s19"
arm-none-eabi-objcopy: 'C:/WinARM/Testprojekt/Debug/Test.': No such file
make[2]: [makefile:101: post-build] Error 1 (ignored)
Invoking: GNU ARM Cross Create Flash Image
arm-none-eabi-objcopy -O ihex -j .text -j .data "Test.elf" "Test.hex"
Finished building: Test.hex
Invoking: GNU ARM Cross Create Listing
arm-none-eabi-objdump --source --all-headers --demangle --line-numbers --wide "Test.elf" > "Test.lst"
Finished building: Test.lst
Invoking: GNU ARM Cross Print Size
arm-none-eabi-size --format=berkeley --totals "Test.elf"
text data bss dec hex filename
0 0 0 0 0 Test.elf
0 0 0 0 0 (TOTALS)
Finished building: Test.siz
11:18:13 Build Finished. 0 errors, 1 warnings. (took 13s.763ms)
Вот как выглядит hex-файл:
:040000030000800079
:00000001FF
Просьба может кто-нибудь выяснитьВ чем проблема?
Какая информация вам нужна, чтобы помочь мне?