openthermalcamera / HW-Firmware

Firmware for the STM32F042F6 on the PCB
GNU General Public License v3.0
16 stars 3 forks source link

Build Failed #2

Open Kabron287 opened 2 years ago

Kabron287 commented 2 years ago

During compilation in STM32cube got the following errors:

../Inc/Version.h:15:67: error: expected expression before ',' token
   15 |  struct FirmwareVersion firmwareVersion = { .major = MAJOR_VERSION, .minor = MINOR_VERSION, .revision = REVISION_VERSION };
      |                                                                   ^
make[1]: *** [Src/subdir.mk:61: Src/implementation.o] Error 1
make: *** [makefile:61: all] Error 2
"make all" terminated with exit code 2. Build might be incomplete.
themarpe commented 2 years ago

Hi @Kabron287

This project was build using Atollic TrueSTUDIO® for STM32, Version: 9.0.1

Can you try with that version first?

Otherwise check if MAJOR_VERSION, MINOR_VERSION and REVISION_VERSION build defines are properly set.

image

Where their values are defined in Build Variables: image

Kabron287 commented 2 years ago

Thank, I'll try.