2020-09-17 01:05 PM
These are my error messages -
<command-line>:0:1: error: macro names must be identifiers
<command-line>:0:1: error: macro names must be identifiers
<command-line>:0:1: error: macro names must be identifiers
<command-line>:0:1: error: macro names must be identifiers
make: *** [Utilities/subdir.mk:35: Utilities/queue.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Utilities/subdir.mk:33: Utilities/low_power_manager.o] Error 1
make: *** [sx126x/subdir.mk:23: sx126x/sx126x.o] Error 1
make: *** [sx126x/subdir.mk:21: sx126x/radio.o] Error 1
Solved! Go to Solution.
2020-09-17 03:32 PM
I could solve it.
The additional '#' in -D#ARM_MATH_CM4 was the error
Thanks Clive for responding
2020-09-17 01:23 PM
Look at the command line you're passing to the tools, perhaps the command line defines
Perhaps attach a project file, or the make file
2020-09-17 02:42 PM
Thanks for responding!! Please find the makefile below -
################################################################################
# Automatically-generated file. Do not edit!
################################################################################
-include ../makefile.init
RM := rm -rf
# All of the sources participating in the build are defined here
-include sources.mk
-include sx126x/subdir.mk
-include Utilities/subdir.mk
-include STM32L4xx_Nucleo/subdir.mk
-include Mac/region/subdir.mk
-include Mac/subdir.mk
-include Drivers/STM32L4xx_HAL_Driver/Src/subdir.mk
-include Crypto/subdir.mk
-include Core/Startup/subdir.mk
-include Core/Src/subdir.mk
-include Basic/subdir.mk
-include Appsrc/subdir.mk
-include subdir.mk
-include objects.mk
ifneq ($(MAKECMDGOALS),clean)
ifneq ($(strip $(C_DEPS)),)
-include $(C_DEPS)
endif
endif
-include ../makefile.defs
# Add inputs and outputs from these tool invocations to the build variables
EXECUTABLES += \
LoRa_Test.elf \
SIZE_OUTPUT += \
default.size.stdout \
OBJDUMP_LIST += \
LoRa_Test.list \
OBJCOPY_BIN += \
LoRa_Test.bin \
# All Target
all: LoRa_Test.elf secondary-outputs
# Tool invocations
LoRa_Test.elf: $(OBJS) $(USER_OBJS) C:\Users\alber\STM32CubeIDE\workspace_1.3.0\LoRa_Test\STM32L476RGTX_FLASH.ld
arm-none-eabi-gcc -o "LoRa_Test.elf" @"objects.list" $(USER_OBJS) $(LIBS) -mcpu=cortex-m4 -T"C:\Users\alber\STM32CubeIDE\workspace_1.3.0\LoRa_Test\STM32L476RGTX_FLASH.ld" --specs=nosys.specs -Wl,-Map="LoRa_Test.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
@echo 'Finished building target: $@'
@echo ' '
default.size.stdout: $(EXECUTABLES)
arm-none-eabi-size $(EXECUTABLES)
@echo 'Finished building: $@'
@echo ' '
LoRa_Test.list: $(EXECUTABLES)
arm-none-eabi-objdump -h -S $(EXECUTABLES) > "LoRa_Test.list"
@echo 'Finished building: $@'
@echo ' '
LoRa_Test.bin: $(EXECUTABLES)
arm-none-eabi-objcopy -O binary $(EXECUTABLES) "LoRa_Test.bin"
@echo 'Finished building: $@'
@echo ' '
# Other Targets
clean:
-$(RM) *
-@echo ' '
secondary-outputs: $(SIZE_OUTPUT) $(OBJDUMP_LIST) $(OBJCOPY_BIN)
.PHONY: all clean dependents
.SECONDARY:
-include ../makefile.targets
2020-09-17 02:55 PM
Error for the makefile below -
################################################################################
# Automatically-generated file. Do not edit!
################################################################################
# Add inputs and outputs from these tool invocations to the build variables
C_SRCS += \
C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Drivers/BSP/Components/sx126x/radio.c \
C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Drivers/BSP/Components/sx126x/sx126x.c
OBJS += \
./sx126x/radio.o \
./sx126x/sx126x.o
C_DEPS += \
./sx126x/radio.d \
./sx126x/sx126x.d
# Each subdirectory must supply rules for building sources it contributes
sx126x/radio.o: C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Drivers/BSP/Components/sx126x/radio.c
arm-none-eabi-gcc "$<" -mcpu=cortex-m4 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32L476xx -DDEBUG -DREGION_IN865 -DUSE_STM32L47XX_NUCLEO -D#ARM_MATH_CM4 -c -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Projects/STM32L476RG-Nucleo/Applications/LoRa/End_Node/Core/inc" -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Projects/STM32L476RG-Nucleo/Applications/LoRa/End_Node/LoRaWAN/App/inc" -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Drivers/CMSIS/Device/ST/STM32L4xx/Include" -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Drivers/BSP/STM32L4xx_Nucleo" -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Drivers/STM32L4xx_HAL_Driver/Inc" -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Drivers/CMSIS/Include" -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Middlewares/Third_Party/LoRaWAN/Crypto" -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Middlewares/Third_Party/LoRaWAN/Mac" -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Middlewares/Third_Party/LoRaWAN/Phy" -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Middlewares/Third_Party/LoRaWAN/Utilities" -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Middlewares/Third_Party/LoRaWAN/Patterns/Basic" -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Drivers/BSP/Components/sx126x" -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Projects/STM32L476RG-Nucleo/Applications/LoRa/End_Node/LoRaWAN/App/src" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"sx126x/radio.d" -MT"$@" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "$@"
sx126x/sx126x.o: C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Drivers/BSP/Components/sx126x/sx126x.c
arm-none-eabi-gcc "$<" -mcpu=cortex-m4 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32L476xx -DDEBUG -DREGION_IN865 -DUSE_STM32L47XX_NUCLEO -D#ARM_MATH_CM4 -c -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Projects/STM32L476RG-Nucleo/Applications/LoRa/End_Node/Core/inc" -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Projects/STM32L476RG-Nucleo/Applications/LoRa/End_Node/LoRaWAN/App/inc" -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Drivers/CMSIS/Device/ST/STM32L4xx/Include" -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Drivers/BSP/STM32L4xx_Nucleo" -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Drivers/STM32L4xx_HAL_Driver/Inc" -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Drivers/CMSIS/Include" -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Middlewares/Third_Party/LoRaWAN/Crypto" -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Middlewares/Third_Party/LoRaWAN/Mac" -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Middlewares/Third_Party/LoRaWAN/Phy" -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Middlewares/Third_Party/LoRaWAN/Utilities" -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Middlewares/Third_Party/LoRaWAN/Patterns/Basic" -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Drivers/BSP/Components/sx126x" -I"C:/Users/alber/Documents/LoRa/en.i-cube_lrwan/STM32CubeExpansion_LRWAN_V1.3.1/Projects/STM32L476RG-Nucleo/Applications/LoRa/End_Node/LoRaWAN/App/src" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"sx126x/sx126x.d" -MT"$@" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "$@"
2020-09-17 03:32 PM
I could solve it.
The additional '#' in -D#ARM_MATH_CM4 was the error
Thanks Clive for responding