nrf52_vesc
nrf52_vesc copied to clipboard
Compilation fail
Hi,
i get this:
/usr/bin/arm-none-eabi-gcc' -O3 -g3 -mthumb -mabi=aapcs -L/home/busta/src/nRF5_SDK_15.3.0_59ac345/modules/nrfx/mdk -Tld_sd_52840.ld -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Wl,--gc-sections --specs=nano.specs -u _printf_float @_build/nrf52840_xxaa.in -Wl,-Map=_build/nrf52840_xxaa.map -o _build/nrf52840_xxaa.out /usr/lib/gcc/arm-none-eabi/12.2.1/../../../arm-none-eabi/bin/ld: _build/nrf52840_xxaa/storage.c.o:/home/busta/src/nrf52_vesc/storage.h:26: multiple definition of `m_config'; _build/nrf52840_xxaa/main.c.o:/home/busta/src/nrf52_vesc/storage.h:26: first defined here collect2: error: ld returned 1 exit status make: *** [/home/busta/src/nRF5_SDK_15.3.0_59ac345/components/toolchain/gcc/Makefile.common:294: _build/nrf52840_xxaa.out] Error 1
Compiling on Kali Linux Rolling
Any ideas? Thanks!
Adding a line to storage.h seems to clear this error.
// Global variables extern config_data m_config;
fixed: https://github.com/vedderb/nrf52_vesc/pull/5
@vedderb would you be able to merge this in?