Makefile 近期学习的一些心得及其疑问

最近切换到了linux系统,但按捺不住内心想搞事情的冲动一直想要在linux下开发stm32,为此最近进行了一些学习,新手上路如有不足请斧正!

为了能在linux下开发,我也是走了好多弯路,下面就从搭建环境开始

一、环境搭建

首先下载arm-none-eabi交叉编译工具链。下载地址:GNU Toolchain | GNU Arm Embedded Toolchain Downloads – Arm DeveloperDownload the GNU Embedded Toolchain for ARM, an open-source suite of tools for C, C++, and Assembly programming for 32-bit ARM Cortex-A, ARM Cortex-M and Cortex-R familieshttps://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm/downloads

如图:下载第三个。

然后配置环境变量

打开终端输入:

sudo vim /etc/profile

在profile文件最末尾加入

export PATH=$PATH:/home/fxx/Downloads/gcc-arm-none-eabi-10.3-2021.07/bin/

 最后使能环境变量

source /etc/profile 

   如果是archlinux 请在终端输入

sudo pacman -S arm-none-eabi-gcc arm-none-eabi-binutils arm-none-eabi-gdb arm-none-eabi-newlib

可以看这篇文章:ubuntu安装gcc-arm-none-eabi的几种方式_彼尔的博客-CSDN博客_gcc-arm-none-eabi安装

 二、使用HAL库构建本地工程文件

下载hal库。地址:

STM32 固件 - STMicroelectronics

        注意:打开下载网址后在最上端的搜索框输入自己的mcu型号进行搜索,然后下载对应的hal包

我已stm32f407zgt6来举例

 

 

 选择下载后在本地解压

 解压后结构如下:

_htmresc------存放这一些图片

Documentation------Hal库的概述

Drivers------内核文件、外设文件等

其他还有一些文件在本次构建本地项目的时候也用不到,不再说了。(主要是不清楚)

在桌面新建project文件夹

 

 建立如上文件夹以及把启动文件和链接文件拷贝至project文件夹内

 其文件夹内再建立Inc、Src文件夹,这些文件夹用来存放.c和.h文件,再Usr文件中新建main.c和中断函数文件

 在CMSIS文件夹中考入一下文件

再cmsis/src中考入system_stm32f4xx.c文件(文件来源:刚刚解压的hal库./Drivers/CMSIS/Core/Include/)

最终cmsis文件夹内如下:

在dev文件中拷入(刚才下载并解压的hal库中./Drivers/STM32F4xx_HAL_Driver/)

编写makefile

targe = sd #最后生产的elf文件名
pwd =$(shell pwd) #获得绝对路径
vpath %.c $(pwd)/CMSIS/Src/ #告诉编译器搜苏路径
vpath %.c $(pwd)/Dev/Src/
vpath %.c $(pwd)/Usr/
vpath %.h $(pwd)/CMSIS/Inc/ 
vpath %.h ./Dev/Inc/ 
vpath %.h ./Usr/Inc/
LDFILE = $(pwd)/STM32F407ZGTx_FLASH.ld #链接的参数,替换编译器默认参数
path = -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ #头文件搜索路径
cdefin = -DSTM32F407xx -DUSE_HAL_DRIVER #全局宏定义
CC := arm-none-eabi-gcc #改变默认的gcc编译器
AS := arm-none-eabi-as
LDFLAGS = -mthumb -mcpu=cortex-m3 -specs=nosys.specs -static -Wl,-cref,-u,Reset_Handler -Wl, -Wl,--gc-sections -Wl,--defsym=malloc_getpagesize_P=0x80 -Wl,--start-group -lc -lm -Wl,--end-group
SFLAGE = -mthumb -mcpu=cortex-m3 -g -Wa,--warn
CFLAGS = -mthumb -mcpu=cortex-m4 -g -Wall  #
c_source =  $(notdir $(wildcard *.c ./CMSIS/Src/*.c ./Dev/Src/*.c ./Usr/*.c))
obj_source = $(notdir $(patsubst %.c,%.o,$(c_source)))
#$(warning $(c_source))
#$(warning $(obj_source))
$(targe).elf:$(obj_source)
	$(CC) $(LDFLAGS) $(cdefin) -T $(LDFILE)  -o $@ ./Obj/ $^
%.o:%.c
	$(CC) $(CFLAGS) $(path) $(cdefin) -c $< -o ./Obj/$@
clean:
	rm -f ./Obj/*.o

make

arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/CMSIS/Src/system_stm32f4xx.c -o ./Obj/system_stm32f4xx.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_adc.c -o ./Obj/stm32f4xx_hal_adc.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_adc_ex.c -o ./Obj/stm32f4xx_hal_adc_ex.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal.c -o ./Obj/stm32f4xx_hal.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_can.c -o ./Obj/stm32f4xx_hal_can.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_cec.c -o ./Obj/stm32f4xx_hal_cec.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_cortex.c -o ./Obj/stm32f4xx_hal_cortex.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_crc.c -o ./Obj/stm32f4xx_hal_crc.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_cryp.c -o ./Obj/stm32f4xx_hal_cryp.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_cryp_ex.c -o ./Obj/stm32f4xx_hal_cryp_ex.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_dac.c -o ./Obj/stm32f4xx_hal_dac.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_dac_ex.c -o ./Obj/stm32f4xx_hal_dac_ex.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_dcmi.c -o ./Obj/stm32f4xx_hal_dcmi.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_dcmi_ex.c -o ./Obj/stm32f4xx_hal_dcmi_ex.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_dfsdm.c -o ./Obj/stm32f4xx_hal_dfsdm.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_dma2d.c -o ./Obj/stm32f4xx_hal_dma2d.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_dma.c -o ./Obj/stm32f4xx_hal_dma.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_dma_ex.c -o ./Obj/stm32f4xx_hal_dma_ex.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_dsi.c -o ./Obj/stm32f4xx_hal_dsi.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_eth.c -o ./Obj/stm32f4xx_hal_eth.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_exti.c -o ./Obj/stm32f4xx_hal_exti.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_flash.c -o ./Obj/stm32f4xx_hal_flash.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_flash_ex.c -o ./Obj/stm32f4xx_hal_flash_ex.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_flash_ramfunc.c -o ./Obj/stm32f4xx_hal_flash_ramfunc.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_fmpi2c.c -o ./Obj/stm32f4xx_hal_fmpi2c.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_fmpi2c_ex.c -o ./Obj/stm32f4xx_hal_fmpi2c_ex.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_fmpsmbus.c -o ./Obj/stm32f4xx_hal_fmpsmbus.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_fmpsmbus_ex.c -o ./Obj/stm32f4xx_hal_fmpsmbus_ex.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_gpio.c -o ./Obj/stm32f4xx_hal_gpio.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_hash.c -o ./Obj/stm32f4xx_hal_hash.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_hash_ex.c -o ./Obj/stm32f4xx_hal_hash_ex.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_hcd.c -o ./Obj/stm32f4xx_hal_hcd.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_i2c.c -o ./Obj/stm32f4xx_hal_i2c.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_i2c_ex.c -o ./Obj/stm32f4xx_hal_i2c_ex.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_i2s.c -o ./Obj/stm32f4xx_hal_i2s.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_i2s_ex.c -o ./Obj/stm32f4xx_hal_i2s_ex.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_irda.c -o ./Obj/stm32f4xx_hal_irda.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_iwdg.c -o ./Obj/stm32f4xx_hal_iwdg.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_lptim.c -o ./Obj/stm32f4xx_hal_lptim.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_ltdc.c -o ./Obj/stm32f4xx_hal_ltdc.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_ltdc_ex.c -o ./Obj/stm32f4xx_hal_ltdc_ex.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_mmc.c -o ./Obj/stm32f4xx_hal_mmc.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_msp_template.c -o ./Obj/stm32f4xx_hal_msp_template.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_nand.c -o ./Obj/stm32f4xx_hal_nand.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_nor.c -o ./Obj/stm32f4xx_hal_nor.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_pccard.c -o ./Obj/stm32f4xx_hal_pccard.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_pcd.c -o ./Obj/stm32f4xx_hal_pcd.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_pcd_ex.c -o ./Obj/stm32f4xx_hal_pcd_ex.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_pwr.c -o ./Obj/stm32f4xx_hal_pwr.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_pwr_ex.c -o ./Obj/stm32f4xx_hal_pwr_ex.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_qspi.c -o ./Obj/stm32f4xx_hal_qspi.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_rcc.c -o ./Obj/stm32f4xx_hal_rcc.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_rcc_ex.c -o ./Obj/stm32f4xx_hal_rcc_ex.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_rng.c -o ./Obj/stm32f4xx_hal_rng.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_rtc.c -o ./Obj/stm32f4xx_hal_rtc.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_rtc_ex.c -o ./Obj/stm32f4xx_hal_rtc_ex.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_sai.c -o ./Obj/stm32f4xx_hal_sai.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_sai_ex.c -o ./Obj/stm32f4xx_hal_sai_ex.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_sd.c -o ./Obj/stm32f4xx_hal_sd.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_sdram.c -o ./Obj/stm32f4xx_hal_sdram.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_smartcard.c -o ./Obj/stm32f4xx_hal_smartcard.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_smbus.c -o ./Obj/stm32f4xx_hal_smbus.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_spdifrx.c -o ./Obj/stm32f4xx_hal_spdifrx.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_spi.c -o ./Obj/stm32f4xx_hal_spi.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_sram.c -o ./Obj/stm32f4xx_hal_sram.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_tim.c -o ./Obj/stm32f4xx_hal_tim.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_timebase_rtc_alarm_template.c -o ./Obj/stm32f4xx_hal_timebase_rtc_alarm_template.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_timebase_rtc_wakeup_template.c -o ./Obj/stm32f4xx_hal_timebase_rtc_wakeup_template.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_timebase_tim_template.c -o ./Obj/stm32f4xx_hal_timebase_tim_template.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_tim_ex.c -o ./Obj/stm32f4xx_hal_tim_ex.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_uart.c -o ./Obj/stm32f4xx_hal_uart.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_usart.c -o ./Obj/stm32f4xx_hal_usart.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_hal_wwdg.c -o ./Obj/stm32f4xx_hal_wwdg.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_ll_adc.c -o ./Obj/stm32f4xx_ll_adc.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_ll_crc.c -o ./Obj/stm32f4xx_ll_crc.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_ll_dac.c -o ./Obj/stm32f4xx_ll_dac.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_ll_dma2d.c -o ./Obj/stm32f4xx_ll_dma2d.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_ll_dma.c -o ./Obj/stm32f4xx_ll_dma.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_ll_exti.c -o ./Obj/stm32f4xx_ll_exti.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_ll_fmc.c -o ./Obj/stm32f4xx_ll_fmc.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_ll_fmpi2c.c -o ./Obj/stm32f4xx_ll_fmpi2c.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_ll_fsmc.c -o ./Obj/stm32f4xx_ll_fsmc.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_ll_gpio.c -o ./Obj/stm32f4xx_ll_gpio.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_ll_i2c.c -o ./Obj/stm32f4xx_ll_i2c.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_ll_lptim.c -o ./Obj/stm32f4xx_ll_lptim.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_ll_pwr.c -o ./Obj/stm32f4xx_ll_pwr.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_ll_rcc.c -o ./Obj/stm32f4xx_ll_rcc.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_ll_rng.c -o ./Obj/stm32f4xx_ll_rng.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_ll_rtc.c -o ./Obj/stm32f4xx_ll_rtc.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_ll_sdmmc.c -o ./Obj/stm32f4xx_ll_sdmmc.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_ll_spi.c -o ./Obj/stm32f4xx_ll_spi.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_ll_tim.c -o ./Obj/stm32f4xx_ll_tim.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_ll_usart.c -o ./Obj/stm32f4xx_ll_usart.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_ll_usb.c -o ./Obj/stm32f4xx_ll_usb.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Dev/Src/stm32f4xx_ll_utils.c -o ./Obj/stm32f4xx_ll_utils.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Usr/main.c -o ./Obj/main.o
/home/fxx/Desktop/Project/Usr/main.c:2:7: warning: return type of 'main' is not 'int' [-Wmain]
    2 |  void main()
      |       ^~~~
arm-none-eabi-gcc -mthumb -mcpu=cortex-m4 -g -Wall   -I ./CMSIS/Inc/ -I ./Dev/Inc/ -I ./Usr/Inc/ -DSTM32F407xx -DUSE_HAL_DRIVER -c /home/fxx/Desktop/Project/Usr/stm32f4xx_it.c -o ./Obj/stm32f4xx_it.o
arm-none-eabi-gcc -mthumb -mcpu=cortex-m3 -specs=nosys.specs -static -Wl,-cref,-u,Reset_Handler -Wl, -Wl,--gc-sections -Wl,--defsym=malloc_getpagesize_P=0x80 -Wl,--start-group -lc -lm -Wl,--end-group -DSTM32F407xx -DUSE_HAL_DRIVER -T /home/fxx/Desktop/Project/STM32F407ZGTx_FLASH.ld  -o sd.elf ./Obj/ system_stm32f4xx.o stm32f4xx_hal_adc.o stm32f4xx_hal_adc_ex.o stm32f4xx_hal.o stm32f4xx_hal_can.o stm32f4xx_hal_cec.o stm32f4xx_hal_cortex.o stm32f4xx_hal_crc.o stm32f4xx_hal_cryp.o stm32f4xx_hal_cryp_ex.o stm32f4xx_hal_dac.o stm32f4xx_hal_dac_ex.o stm32f4xx_hal_dcmi.o stm32f4xx_hal_dcmi_ex.o stm32f4xx_hal_dfsdm.o stm32f4xx_hal_dma2d.o stm32f4xx_hal_dma.o stm32f4xx_hal_dma_ex.o stm32f4xx_hal_dsi.o stm32f4xx_hal_eth.o stm32f4xx_hal_exti.o stm32f4xx_hal_flash.o stm32f4xx_hal_flash_ex.o stm32f4xx_hal_flash_ramfunc.o stm32f4xx_hal_fmpi2c.o stm32f4xx_hal_fmpi2c_ex.o stm32f4xx_hal_fmpsmbus.o stm32f4xx_hal_fmpsmbus_ex.o stm32f4xx_hal_gpio.o stm32f4xx_hal_hash.o stm32f4xx_hal_hash_ex.o stm32f4xx_hal_hcd.o stm32f4xx_hal_i2c.o stm32f4xx_hal_i2c_ex.o stm32f4xx_hal_i2s.o stm32f4xx_hal_i2s_ex.o stm32f4xx_hal_irda.o stm32f4xx_hal_iwdg.o stm32f4xx_hal_lptim.o stm32f4xx_hal_ltdc.o stm32f4xx_hal_ltdc_ex.o stm32f4xx_hal_mmc.o stm32f4xx_hal_msp_template.o stm32f4xx_hal_nand.o stm32f4xx_hal_nor.o stm32f4xx_hal_pccard.o stm32f4xx_hal_pcd.o stm32f4xx_hal_pcd_ex.o stm32f4xx_hal_pwr.o stm32f4xx_hal_pwr_ex.o stm32f4xx_hal_qspi.o stm32f4xx_hal_rcc.o stm32f4xx_hal_rcc_ex.o stm32f4xx_hal_rng.o stm32f4xx_hal_rtc.o stm32f4xx_hal_rtc_ex.o stm32f4xx_hal_sai.o stm32f4xx_hal_sai_ex.o stm32f4xx_hal_sd.o stm32f4xx_hal_sdram.o stm32f4xx_hal_smartcard.o stm32f4xx_hal_smbus.o stm32f4xx_hal_spdifrx.o stm32f4xx_hal_spi.o stm32f4xx_hal_sram.o stm32f4xx_hal_tim.o stm32f4xx_hal_timebase_rtc_alarm_template.o stm32f4xx_hal_timebase_rtc_wakeup_template.o stm32f4xx_hal_timebase_tim_template.o stm32f4xx_hal_tim_ex.o stm32f4xx_hal_uart.o stm32f4xx_hal_usart.o stm32f4xx_hal_wwdg.o stm32f4xx_ll_adc.o stm32f4xx_ll_crc.o stm32f4xx_ll_dac.o stm32f4xx_ll_dma2d.o stm32f4xx_ll_dma.o stm32f4xx_ll_exti.o stm32f4xx_ll_fmc.o stm32f4xx_ll_fmpi2c.o stm32f4xx_ll_fsmc.o stm32f4xx_ll_gpio.o stm32f4xx_ll_i2c.o stm32f4xx_ll_lptim.o stm32f4xx_ll_pwr.o stm32f4xx_ll_rcc.o stm32f4xx_ll_rng.o stm32f4xx_ll_rtc.o stm32f4xx_ll_sdmmc.o stm32f4xx_ll_spi.o stm32f4xx_ll_tim.o stm32f4xx_ll_usart.o stm32f4xx_ll_usb.o stm32f4xx_ll_utils.o main.o stm32f4xx_it.o
arm-none-eabi-gcc: error: system_stm32f4xx.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_adc.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_adc_ex.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_can.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_cec.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_cortex.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_crc.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_cryp.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_cryp_ex.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_dac.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_dac_ex.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_dcmi.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_dcmi_ex.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_dfsdm.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_dma2d.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_dma.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_dma_ex.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_dsi.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_eth.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_exti.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_flash.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_flash_ex.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_flash_ramfunc.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_fmpi2c.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_fmpi2c_ex.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_fmpsmbus.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_fmpsmbus_ex.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_gpio.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_hash.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_hash_ex.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_hcd.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_i2c.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_i2c_ex.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_i2s.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_i2s_ex.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_irda.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_iwdg.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_lptim.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_ltdc.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_ltdc_ex.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_mmc.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_msp_template.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_nand.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_nor.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_pccard.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_pcd.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_pcd_ex.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_pwr.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_pwr_ex.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_qspi.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_rcc.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_rcc_ex.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_rng.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_rtc.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_rtc_ex.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_sai.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_sai_ex.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_sd.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_sdram.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_smartcard.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_smbus.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_spdifrx.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_spi.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_sram.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_tim.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_timebase_rtc_alarm_template.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_timebase_rtc_wakeup_template.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_timebase_tim_template.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_tim_ex.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_uart.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_usart.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_hal_wwdg.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_ll_adc.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_ll_crc.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_ll_dac.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_ll_dma2d.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_ll_dma.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_ll_exti.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_ll_fmc.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_ll_fmpi2c.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_ll_fsmc.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_ll_gpio.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_ll_i2c.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_ll_lptim.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_ll_pwr.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_ll_rcc.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_ll_rng.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_ll_rtc.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_ll_sdmmc.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_ll_spi.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_ll_tim.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_ll_usart.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_ll_usb.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_ll_utils.o: No such file or directory
arm-none-eabi-gcc: error: main.o: No such file or directory
arm-none-eabi-gcc: error: stm32f4xx_it.o: No such file or directory
make: *** [Makefile:22:sd.elf] 错误 1

make后,前面生成.o都没有问题,但最后生产elf时报错,好像是把没有用到的.o链接进去了。但makefile不知道怎么改了,有大佬希望不吝赐教!感谢。

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

一个人创造世界

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值