From 39f0c3a2b8067179ef9c2157454ff3942be4d847 Mon Sep 17 00:00:00 2001 From: "Jazz (gitea)" Date: Tue, 14 Oct 2025 20:01:56 -0500 Subject: [PATCH] c++ works now --- .gitignore | 2 + Core/Src/{main.c => main.cpp} | 5 +- Makefile | 29 +- compile_commands.json | 723 ++++++++++++++++++++++++++++++++++ main.plist | 14 + 5 files changed, 762 insertions(+), 11 deletions(-) create mode 100644 .gitignore rename Core/Src/{main.c => main.cpp} (94%) create mode 100644 compile_commands.json create mode 100644 main.plist diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2ef56c7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.cache/ +.ccls-cache/ diff --git a/Core/Src/main.c b/Core/Src/main.cpp similarity index 94% rename from Core/Src/main.c rename to Core/Src/main.cpp index d079fc8..7f04e1c 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.cpp @@ -17,7 +17,9 @@ */ /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ +extern "C" { #include "main.h" +} /* Private includes ----------------------------------------------------------*/ /* USER CODE BEGIN Includes */ @@ -292,8 +294,7 @@ void Error_Handler(void) void assert_failed(uint8_t *file, uint32_t line) { /* USER CODE BEGIN 6 */ - /* User can add his own implementation to report the file name and line number, - ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */ + // ugh /* USER CODE END 6 */ } #endif /* USE_FULL_ASSERT */ diff --git a/Makefile b/Makefile index a75aab7..3634a1d 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,6 @@ BUILD_DIR = build ###################################### # C sources C_SOURCES = \ -Core/Src/main.c \ Core/Src/stm32f4xx_it.c \ Core/Src/stm32f4xx_hal_msp.c \ Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_crc.c \ @@ -59,6 +58,8 @@ Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.c \ Core/Src/system_stm32f4xx.c \ Core/Src/sysmem.c \ Core/Src/syscalls.c + +CXX_SOURCES = Core/Src/main.cpp # ASM sources ASM_SOURCES = \ @@ -77,17 +78,19 @@ ASMMC_SOURCE = PREFIX = arm-none-eabi- # The gcc compiler bin path can be either defined in make command via GCC_PATH variable (> make GCC_PATH=xxx) # either it can be added to the PATH environment variable. -ifdef GCC_PATH +#ifdef GCC_PATH +GCC_PATH = $(HOME)/.arm-gcc/bin CC = $(GCC_PATH)/$(PREFIX)gcc +CXX = $(GCC_PATH)/$(PREFIX)g++ AS = $(GCC_PATH)/$(PREFIX)gcc -x assembler-with-cpp CP = $(GCC_PATH)/$(PREFIX)objcopy SZ = $(GCC_PATH)/$(PREFIX)size -else -CC = $(PREFIX)gcc -AS = $(PREFIX)gcc -x assembler-with-cpp -CP = $(PREFIX)objcopy -SZ = $(PREFIX)size -endif +#else +#CC = $(PREFIX)gcc +#AS = $(PREFIX)gcc -x assembler-with-cpp +#CP = $(PREFIX)objcopy +#SZ = $(PREFIX)size +#endif HEX = $(CP) -O ihex BIN = $(CP) -O binary -S @@ -132,6 +135,8 @@ C_INCLUDES = \ ASFLAGS = $(MCU) $(AS_DEFS) $(AS_INCLUDES) $(OPT) -Wall -fdata-sections -ffunction-sections CFLAGS += $(MCU) $(C_DEFS) $(C_INCLUDES) $(OPT) -Wall -fdata-sections -ffunction-sections + +#CXXFLAGS += $(MCU) $(C_DEFS) $(C_INCLUDES) -Wall -fdata-sections -ffunction-sections ifeq ($(DEBUG), 1) CFLAGS += -g -gdwarf-2 @@ -142,6 +147,7 @@ endif CFLAGS += -MMD -MP -MF"$(@:%.o=%.d)" +CXXFLAGS += $(CFLAGS) ####################################### # LDFLAGS ####################################### @@ -163,6 +169,8 @@ all: $(BUILD_DIR)/$(TARGET).elf $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET # list of objects OBJECTS = $(addprefix $(BUILD_DIR)/,$(notdir $(C_SOURCES:.c=.o))) vpath %.c $(sort $(dir $(C_SOURCES))) +OBJECTS += $(addprefix $(BUILD_DIR)/,$(notdir $(CXX_SOURCES:.cpp=.o))) +vpath %.cpp $(sort $(dir $(CXX_SOURCES))) # list of ASM program objects OBJECTS += $(addprefix $(BUILD_DIR)/,$(notdir $(ASM_SOURCES:.s=.o))) vpath %.s $(sort $(dir $(ASM_SOURCES))) @@ -173,6 +181,9 @@ vpath %.S $(sort $(dir $(ASMMC_SOURCES))) $(BUILD_DIR)/%.o: %.c Makefile | $(BUILD_DIR) $(CC) -c $(CFLAGS) -Wa,-a,-ad,-alms=$(BUILD_DIR)/$(notdir $(<:.c=.lst)) $< -o $@ + +$(BUILD_DIR)/%.o: %.cpp Makefile | $(BUILD_DIR) + $(CXX) -c $(CXXFLAGS) -Wa,-a,-ad,-alms=$(BUILD_DIR)/$(notdir $(<:.cpp=.lst)) $< -o $@ $(BUILD_DIR)/%.o: %.s Makefile | $(BUILD_DIR) $(AS) -c $(CFLAGS) $< -o $@ @@ -203,4 +214,4 @@ clean: ####################################### -include $(wildcard $(BUILD_DIR)/*.d) -# *** EOF *** \ No newline at end of file +# *** EOF *** diff --git a/compile_commands.json b/compile_commands.json new file mode 100644 index 0000000..74def75 --- /dev/null +++ b/compile_commands.json @@ -0,0 +1,723 @@ +[ + { + "arguments": [ + "/home/ja/.arm-gcc/bin/arm-none-eabi-gcc", + "-c", + "-mcpu=cortex-m4", + "-mthumb", + "-mfpu=fpv4-sp-d16", + "-mfloat-abi=hard", + "-DUSE_HAL_DRIVER", + "-DSTM32F429xx", + "-ICore/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy", + "-IDrivers/CMSIS/Device/ST/STM32F4xx/Include", + "-IDrivers/CMSIS/Include", + "-Og", + "-Wall", + "-fdata-sections", + "-ffunction-sections", + "-g", + "-gdwarf-2", + "-Wa,-a,-ad,-alms=build/stm32f4xx_it.lst", + "-o", + "build/stm32f4xx_it.o", + "Core/Src/stm32f4xx_it.c" + ], + "directory": "/home/ja/Documents/STM/TLight", + "file": "/home/ja/Documents/STM/TLight/Core/Src/stm32f4xx_it.c", + "output": "/home/ja/Documents/STM/TLight/build/stm32f4xx_it.o" + }, + { + "arguments": [ + "/home/ja/.arm-gcc/bin/arm-none-eabi-gcc", + "-c", + "-mcpu=cortex-m4", + "-mthumb", + "-mfpu=fpv4-sp-d16", + "-mfloat-abi=hard", + "-DUSE_HAL_DRIVER", + "-DSTM32F429xx", + "-ICore/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy", + "-IDrivers/CMSIS/Device/ST/STM32F4xx/Include", + "-IDrivers/CMSIS/Include", + "-Og", + "-Wall", + "-fdata-sections", + "-ffunction-sections", + "-g", + "-gdwarf-2", + "-Wa,-a,-ad,-alms=build/stm32f4xx_hal_msp.lst", + "-o", + "build/stm32f4xx_hal_msp.o", + "Core/Src/stm32f4xx_hal_msp.c" + ], + "directory": "/home/ja/Documents/STM/TLight", + "file": "/home/ja/Documents/STM/TLight/Core/Src/stm32f4xx_hal_msp.c", + "output": "/home/ja/Documents/STM/TLight/build/stm32f4xx_hal_msp.o" + }, + { + "arguments": [ + "/home/ja/.arm-gcc/bin/arm-none-eabi-gcc", + "-c", + "-mcpu=cortex-m4", + "-mthumb", + "-mfpu=fpv4-sp-d16", + "-mfloat-abi=hard", + "-DUSE_HAL_DRIVER", + "-DSTM32F429xx", + "-ICore/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy", + "-IDrivers/CMSIS/Device/ST/STM32F4xx/Include", + "-IDrivers/CMSIS/Include", + "-Og", + "-Wall", + "-fdata-sections", + "-ffunction-sections", + "-g", + "-gdwarf-2", + "-Wa,-a,-ad,-alms=build/stm32f4xx_hal_crc.lst", + "-o", + "build/stm32f4xx_hal_crc.o", + "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_crc.c" + ], + "directory": "/home/ja/Documents/STM/TLight", + "file": "/home/ja/Documents/STM/TLight/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_crc.c", + "output": "/home/ja/Documents/STM/TLight/build/stm32f4xx_hal_crc.o" + }, + { + "arguments": [ + "/home/ja/.arm-gcc/bin/arm-none-eabi-gcc", + "-c", + "-mcpu=cortex-m4", + "-mthumb", + "-mfpu=fpv4-sp-d16", + "-mfloat-abi=hard", + "-DUSE_HAL_DRIVER", + "-DSTM32F429xx", + "-ICore/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy", + "-IDrivers/CMSIS/Device/ST/STM32F4xx/Include", + "-IDrivers/CMSIS/Include", + "-Og", + "-Wall", + "-fdata-sections", + "-ffunction-sections", + "-g", + "-gdwarf-2", + "-Wa,-a,-ad,-alms=build/stm32f4xx_hal_rcc.lst", + "-o", + "build/stm32f4xx_hal_rcc.o", + "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c" + ], + "directory": "/home/ja/Documents/STM/TLight", + "file": "/home/ja/Documents/STM/TLight/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c", + "output": "/home/ja/Documents/STM/TLight/build/stm32f4xx_hal_rcc.o" + }, + { + "arguments": [ + "/home/ja/.arm-gcc/bin/arm-none-eabi-gcc", + "-c", + "-mcpu=cortex-m4", + "-mthumb", + "-mfpu=fpv4-sp-d16", + "-mfloat-abi=hard", + "-DUSE_HAL_DRIVER", + "-DSTM32F429xx", + "-ICore/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy", + "-IDrivers/CMSIS/Device/ST/STM32F4xx/Include", + "-IDrivers/CMSIS/Include", + "-Og", + "-Wall", + "-fdata-sections", + "-ffunction-sections", + "-g", + "-gdwarf-2", + "-Wa,-a,-ad,-alms=build/stm32f4xx_hal_rcc_ex.lst", + "-o", + "build/stm32f4xx_hal_rcc_ex.o", + "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c" + ], + "directory": "/home/ja/Documents/STM/TLight", + "file": "/home/ja/Documents/STM/TLight/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c", + "output": "/home/ja/Documents/STM/TLight/build/stm32f4xx_hal_rcc_ex.o" + }, + { + "arguments": [ + "/home/ja/.arm-gcc/bin/arm-none-eabi-gcc", + "-c", + "-mcpu=cortex-m4", + "-mthumb", + "-mfpu=fpv4-sp-d16", + "-mfloat-abi=hard", + "-DUSE_HAL_DRIVER", + "-DSTM32F429xx", + "-ICore/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy", + "-IDrivers/CMSIS/Device/ST/STM32F4xx/Include", + "-IDrivers/CMSIS/Include", + "-Og", + "-Wall", + "-fdata-sections", + "-ffunction-sections", + "-g", + "-gdwarf-2", + "-Wa,-a,-ad,-alms=build/stm32f4xx_hal_flash.lst", + "-o", + "build/stm32f4xx_hal_flash.o", + "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c" + ], + "directory": "/home/ja/Documents/STM/TLight", + "file": "/home/ja/Documents/STM/TLight/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c", + "output": "/home/ja/Documents/STM/TLight/build/stm32f4xx_hal_flash.o" + }, + { + "arguments": [ + "/home/ja/.arm-gcc/bin/arm-none-eabi-gcc", + "-c", + "-mcpu=cortex-m4", + "-mthumb", + "-mfpu=fpv4-sp-d16", + "-mfloat-abi=hard", + "-DUSE_HAL_DRIVER", + "-DSTM32F429xx", + "-ICore/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy", + "-IDrivers/CMSIS/Device/ST/STM32F4xx/Include", + "-IDrivers/CMSIS/Include", + "-Og", + "-Wall", + "-fdata-sections", + "-ffunction-sections", + "-g", + "-gdwarf-2", + "-Wa,-a,-ad,-alms=build/stm32f4xx_hal_flash_ex.lst", + "-o", + "build/stm32f4xx_hal_flash_ex.o", + "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c" + ], + "directory": "/home/ja/Documents/STM/TLight", + "file": "/home/ja/Documents/STM/TLight/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c", + "output": "/home/ja/Documents/STM/TLight/build/stm32f4xx_hal_flash_ex.o" + }, + { + "arguments": [ + "/home/ja/.arm-gcc/bin/arm-none-eabi-gcc", + "-c", + "-mcpu=cortex-m4", + "-mthumb", + "-mfpu=fpv4-sp-d16", + "-mfloat-abi=hard", + "-DUSE_HAL_DRIVER", + "-DSTM32F429xx", + "-ICore/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy", + "-IDrivers/CMSIS/Device/ST/STM32F4xx/Include", + "-IDrivers/CMSIS/Include", + "-Og", + "-Wall", + "-fdata-sections", + "-ffunction-sections", + "-g", + "-gdwarf-2", + "-Wa,-a,-ad,-alms=build/stm32f4xx_hal_flash_ramfunc.lst", + "-o", + "build/stm32f4xx_hal_flash_ramfunc.o", + "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.c" + ], + "directory": "/home/ja/Documents/STM/TLight", + "file": "/home/ja/Documents/STM/TLight/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.c", + "output": "/home/ja/Documents/STM/TLight/build/stm32f4xx_hal_flash_ramfunc.o" + }, + { + "arguments": [ + "/home/ja/.arm-gcc/bin/arm-none-eabi-gcc", + "-c", + "-mcpu=cortex-m4", + "-mthumb", + "-mfpu=fpv4-sp-d16", + "-mfloat-abi=hard", + "-DUSE_HAL_DRIVER", + "-DSTM32F429xx", + "-ICore/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy", + "-IDrivers/CMSIS/Device/ST/STM32F4xx/Include", + "-IDrivers/CMSIS/Include", + "-Og", + "-Wall", + "-fdata-sections", + "-ffunction-sections", + "-g", + "-gdwarf-2", + "-Wa,-a,-ad,-alms=build/stm32f4xx_hal_gpio.lst", + "-o", + "build/stm32f4xx_hal_gpio.o", + "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c" + ], + "directory": "/home/ja/Documents/STM/TLight", + "file": "/home/ja/Documents/STM/TLight/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c", + "output": "/home/ja/Documents/STM/TLight/build/stm32f4xx_hal_gpio.o" + }, + { + "arguments": [ + "/home/ja/.arm-gcc/bin/arm-none-eabi-gcc", + "-c", + "-mcpu=cortex-m4", + "-mthumb", + "-mfpu=fpv4-sp-d16", + "-mfloat-abi=hard", + "-DUSE_HAL_DRIVER", + "-DSTM32F429xx", + "-ICore/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy", + "-IDrivers/CMSIS/Device/ST/STM32F4xx/Include", + "-IDrivers/CMSIS/Include", + "-Og", + "-Wall", + "-fdata-sections", + "-ffunction-sections", + "-g", + "-gdwarf-2", + "-Wa,-a,-ad,-alms=build/stm32f4xx_hal_dma_ex.lst", + "-o", + "build/stm32f4xx_hal_dma_ex.o", + "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.c" + ], + "directory": "/home/ja/Documents/STM/TLight", + "file": "/home/ja/Documents/STM/TLight/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.c", + "output": "/home/ja/Documents/STM/TLight/build/stm32f4xx_hal_dma_ex.o" + }, + { + "arguments": [ + "/home/ja/.arm-gcc/bin/arm-none-eabi-gcc", + "-c", + "-mcpu=cortex-m4", + "-mthumb", + "-mfpu=fpv4-sp-d16", + "-mfloat-abi=hard", + "-DUSE_HAL_DRIVER", + "-DSTM32F429xx", + "-ICore/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy", + "-IDrivers/CMSIS/Device/ST/STM32F4xx/Include", + "-IDrivers/CMSIS/Include", + "-Og", + "-Wall", + "-fdata-sections", + "-ffunction-sections", + "-g", + "-gdwarf-2", + "-Wa,-a,-ad,-alms=build/stm32f4xx_hal_dma.lst", + "-o", + "build/stm32f4xx_hal_dma.o", + "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c" + ], + "directory": "/home/ja/Documents/STM/TLight", + "file": "/home/ja/Documents/STM/TLight/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c", + "output": "/home/ja/Documents/STM/TLight/build/stm32f4xx_hal_dma.o" + }, + { + "arguments": [ + "/home/ja/.arm-gcc/bin/arm-none-eabi-gcc", + "-c", + "-mcpu=cortex-m4", + "-mthumb", + "-mfpu=fpv4-sp-d16", + "-mfloat-abi=hard", + "-DUSE_HAL_DRIVER", + "-DSTM32F429xx", + "-ICore/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy", + "-IDrivers/CMSIS/Device/ST/STM32F4xx/Include", + "-IDrivers/CMSIS/Include", + "-Og", + "-Wall", + "-fdata-sections", + "-ffunction-sections", + "-g", + "-gdwarf-2", + "-Wa,-a,-ad,-alms=build/stm32f4xx_hal_pwr.lst", + "-o", + "build/stm32f4xx_hal_pwr.o", + "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.c" + ], + "directory": "/home/ja/Documents/STM/TLight", + "file": "/home/ja/Documents/STM/TLight/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.c", + "output": "/home/ja/Documents/STM/TLight/build/stm32f4xx_hal_pwr.o" + }, + { + "arguments": [ + "/home/ja/.arm-gcc/bin/arm-none-eabi-gcc", + "-c", + "-mcpu=cortex-m4", + "-mthumb", + "-mfpu=fpv4-sp-d16", + "-mfloat-abi=hard", + "-DUSE_HAL_DRIVER", + "-DSTM32F429xx", + "-ICore/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy", + "-IDrivers/CMSIS/Device/ST/STM32F4xx/Include", + "-IDrivers/CMSIS/Include", + "-Og", + "-Wall", + "-fdata-sections", + "-ffunction-sections", + "-g", + "-gdwarf-2", + "-Wa,-a,-ad,-alms=build/stm32f4xx_hal_pwr_ex.lst", + "-o", + "build/stm32f4xx_hal_pwr_ex.o", + "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c" + ], + "directory": "/home/ja/Documents/STM/TLight", + "file": "/home/ja/Documents/STM/TLight/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c", + "output": "/home/ja/Documents/STM/TLight/build/stm32f4xx_hal_pwr_ex.o" + }, + { + "arguments": [ + "/home/ja/.arm-gcc/bin/arm-none-eabi-gcc", + "-c", + "-mcpu=cortex-m4", + "-mthumb", + "-mfpu=fpv4-sp-d16", + "-mfloat-abi=hard", + "-DUSE_HAL_DRIVER", + "-DSTM32F429xx", + "-ICore/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy", + "-IDrivers/CMSIS/Device/ST/STM32F4xx/Include", + "-IDrivers/CMSIS/Include", + "-Og", + "-Wall", + "-fdata-sections", + "-ffunction-sections", + "-g", + "-gdwarf-2", + "-Wa,-a,-ad,-alms=build/stm32f4xx_hal_cortex.lst", + "-o", + "build/stm32f4xx_hal_cortex.o", + "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.c" + ], + "directory": "/home/ja/Documents/STM/TLight", + "file": "/home/ja/Documents/STM/TLight/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.c", + "output": "/home/ja/Documents/STM/TLight/build/stm32f4xx_hal_cortex.o" + }, + { + "arguments": [ + "/home/ja/.arm-gcc/bin/arm-none-eabi-gcc", + "-c", + "-mcpu=cortex-m4", + "-mthumb", + "-mfpu=fpv4-sp-d16", + "-mfloat-abi=hard", + "-DUSE_HAL_DRIVER", + "-DSTM32F429xx", + "-ICore/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy", + "-IDrivers/CMSIS/Device/ST/STM32F4xx/Include", + "-IDrivers/CMSIS/Include", + "-Og", + "-Wall", + "-fdata-sections", + "-ffunction-sections", + "-g", + "-gdwarf-2", + "-Wa,-a,-ad,-alms=build/stm32f4xx_hal.lst", + "-o", + "build/stm32f4xx_hal.o", + "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c" + ], + "directory": "/home/ja/Documents/STM/TLight", + "file": "/home/ja/Documents/STM/TLight/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c", + "output": "/home/ja/Documents/STM/TLight/build/stm32f4xx_hal.o" + }, + { + "arguments": [ + "/home/ja/.arm-gcc/bin/arm-none-eabi-gcc", + "-c", + "-mcpu=cortex-m4", + "-mthumb", + "-mfpu=fpv4-sp-d16", + "-mfloat-abi=hard", + "-DUSE_HAL_DRIVER", + "-DSTM32F429xx", + "-ICore/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy", + "-IDrivers/CMSIS/Device/ST/STM32F4xx/Include", + "-IDrivers/CMSIS/Include", + "-Og", + "-Wall", + "-fdata-sections", + "-ffunction-sections", + "-g", + "-gdwarf-2", + "-Wa,-a,-ad,-alms=build/stm32f4xx_hal_exti.lst", + "-o", + "build/stm32f4xx_hal_exti.o", + "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c" + ], + "directory": "/home/ja/Documents/STM/TLight", + "file": "/home/ja/Documents/STM/TLight/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c", + "output": "/home/ja/Documents/STM/TLight/build/stm32f4xx_hal_exti.o" + }, + { + "arguments": [ + "/home/ja/.arm-gcc/bin/arm-none-eabi-gcc", + "-c", + "-mcpu=cortex-m4", + "-mthumb", + "-mfpu=fpv4-sp-d16", + "-mfloat-abi=hard", + "-DUSE_HAL_DRIVER", + "-DSTM32F429xx", + "-ICore/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy", + "-IDrivers/CMSIS/Device/ST/STM32F4xx/Include", + "-IDrivers/CMSIS/Include", + "-Og", + "-Wall", + "-fdata-sections", + "-ffunction-sections", + "-g", + "-gdwarf-2", + "-Wa,-a,-ad,-alms=build/stm32f4xx_hal_dma2d.lst", + "-o", + "build/stm32f4xx_hal_dma2d.o", + "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma2d.c" + ], + "directory": "/home/ja/Documents/STM/TLight", + "file": "/home/ja/Documents/STM/TLight/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma2d.c", + "output": "/home/ja/Documents/STM/TLight/build/stm32f4xx_hal_dma2d.o" + }, + { + "arguments": [ + "/home/ja/.arm-gcc/bin/arm-none-eabi-gcc", + "-c", + "-mcpu=cortex-m4", + "-mthumb", + "-mfpu=fpv4-sp-d16", + "-mfloat-abi=hard", + "-DUSE_HAL_DRIVER", + "-DSTM32F429xx", + "-ICore/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy", + "-IDrivers/CMSIS/Device/ST/STM32F4xx/Include", + "-IDrivers/CMSIS/Include", + "-Og", + "-Wall", + "-fdata-sections", + "-ffunction-sections", + "-g", + "-gdwarf-2", + "-Wa,-a,-ad,-alms=build/stm32f4xx_hal_tim.lst", + "-o", + "build/stm32f4xx_hal_tim.o", + "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c" + ], + "directory": "/home/ja/Documents/STM/TLight", + "file": "/home/ja/Documents/STM/TLight/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c", + "output": "/home/ja/Documents/STM/TLight/build/stm32f4xx_hal_tim.o" + }, + { + "arguments": [ + "/home/ja/.arm-gcc/bin/arm-none-eabi-gcc", + "-c", + "-mcpu=cortex-m4", + "-mthumb", + "-mfpu=fpv4-sp-d16", + "-mfloat-abi=hard", + "-DUSE_HAL_DRIVER", + "-DSTM32F429xx", + "-ICore/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy", + "-IDrivers/CMSIS/Device/ST/STM32F4xx/Include", + "-IDrivers/CMSIS/Include", + "-Og", + "-Wall", + "-fdata-sections", + "-ffunction-sections", + "-g", + "-gdwarf-2", + "-Wa,-a,-ad,-alms=build/stm32f4xx_hal_tim_ex.lst", + "-o", + "build/stm32f4xx_hal_tim_ex.o", + "Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.c" + ], + "directory": "/home/ja/Documents/STM/TLight", + "file": "/home/ja/Documents/STM/TLight/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.c", + "output": "/home/ja/Documents/STM/TLight/build/stm32f4xx_hal_tim_ex.o" + }, + { + "arguments": [ + "/home/ja/.arm-gcc/bin/arm-none-eabi-gcc", + "-c", + "-mcpu=cortex-m4", + "-mthumb", + "-mfpu=fpv4-sp-d16", + "-mfloat-abi=hard", + "-DUSE_HAL_DRIVER", + "-DSTM32F429xx", + "-ICore/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy", + "-IDrivers/CMSIS/Device/ST/STM32F4xx/Include", + "-IDrivers/CMSIS/Include", + "-Og", + "-Wall", + "-fdata-sections", + "-ffunction-sections", + "-g", + "-gdwarf-2", + "-Wa,-a,-ad,-alms=build/system_stm32f4xx.lst", + "-o", + "build/system_stm32f4xx.o", + "Core/Src/system_stm32f4xx.c" + ], + "directory": "/home/ja/Documents/STM/TLight", + "file": "/home/ja/Documents/STM/TLight/Core/Src/system_stm32f4xx.c", + "output": "/home/ja/Documents/STM/TLight/build/system_stm32f4xx.o" + }, + { + "arguments": [ + "/home/ja/.arm-gcc/bin/arm-none-eabi-gcc", + "-c", + "-mcpu=cortex-m4", + "-mthumb", + "-mfpu=fpv4-sp-d16", + "-mfloat-abi=hard", + "-DUSE_HAL_DRIVER", + "-DSTM32F429xx", + "-ICore/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy", + "-IDrivers/CMSIS/Device/ST/STM32F4xx/Include", + "-IDrivers/CMSIS/Include", + "-Og", + "-Wall", + "-fdata-sections", + "-ffunction-sections", + "-g", + "-gdwarf-2", + "-Wa,-a,-ad,-alms=build/sysmem.lst", + "-o", + "build/sysmem.o", + "Core/Src/sysmem.c" + ], + "directory": "/home/ja/Documents/STM/TLight", + "file": "/home/ja/Documents/STM/TLight/Core/Src/sysmem.c", + "output": "/home/ja/Documents/STM/TLight/build/sysmem.o" + }, + { + "arguments": [ + "/home/ja/.arm-gcc/bin/arm-none-eabi-gcc", + "-c", + "-mcpu=cortex-m4", + "-mthumb", + "-mfpu=fpv4-sp-d16", + "-mfloat-abi=hard", + "-DUSE_HAL_DRIVER", + "-DSTM32F429xx", + "-ICore/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy", + "-IDrivers/CMSIS/Device/ST/STM32F4xx/Include", + "-IDrivers/CMSIS/Include", + "-Og", + "-Wall", + "-fdata-sections", + "-ffunction-sections", + "-g", + "-gdwarf-2", + "-Wa,-a,-ad,-alms=build/syscalls.lst", + "-o", + "build/syscalls.o", + "Core/Src/syscalls.c" + ], + "directory": "/home/ja/Documents/STM/TLight", + "file": "/home/ja/Documents/STM/TLight/Core/Src/syscalls.c", + "output": "/home/ja/Documents/STM/TLight/build/syscalls.o" + }, + { + "arguments": [ + "/home/ja/.arm-gcc/bin/arm-none-eabi-g++", + "-c", + "-mcpu=cortex-m4", + "-mthumb", + "-mfpu=fpv4-sp-d16", + "-mfloat-abi=hard", + "-DUSE_HAL_DRIVER", + "-DSTM32F429xx", + "-ICore/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy", + "-IDrivers/CMSIS/Device/ST/STM32F4xx/Include", + "-IDrivers/CMSIS/Include", + "-Og", + "-Wall", + "-fdata-sections", + "-ffunction-sections", + "-g", + "-gdwarf-2", + "-Wa,-a,-ad,-alms=build/main.lst", + "-o", + "build/main.o", + "Core/Src/main.cpp" + ], + "directory": "/home/ja/Documents/STM/TLight", + "file": "/home/ja/Documents/STM/TLight/Core/Src/main.cpp", + "output": "/home/ja/Documents/STM/TLight/build/main.o" + }, + { + "arguments": [ + "/home/ja/.arm-gcc/bin/arm-none-eabi-gcc", + "-x", + "assembler-with-cpp", + "-c", + "-mcpu=cortex-m4", + "-mthumb", + "-mfpu=fpv4-sp-d16", + "-mfloat-abi=hard", + "-DUSE_HAL_DRIVER", + "-DSTM32F429xx", + "-ICore/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc", + "-IDrivers/STM32F4xx_HAL_Driver/Inc/Legacy", + "-IDrivers/CMSIS/Device/ST/STM32F4xx/Include", + "-IDrivers/CMSIS/Include", + "-Og", + "-Wall", + "-fdata-sections", + "-ffunction-sections", + "-g", + "-gdwarf-2", + "-o", + "build/startup_stm32f429xx.o", + "startup_stm32f429xx.s" + ], + "directory": "/home/ja/Documents/STM/TLight", + "file": "/home/ja/Documents/STM/TLight/startup_stm32f429xx.s", + "output": "/home/ja/Documents/STM/TLight/build/startup_stm32f429xx.o" + } +] diff --git a/main.plist b/main.plist new file mode 100644 index 0000000..2b029dd --- /dev/null +++ b/main.plist @@ -0,0 +1,14 @@ + + + + + clang_version +clang version 17.0.6 + diagnostics + + + files + + + +