Seeed-Studio / LoRaWan-E5-Node

Applications on LoRa-E5 mini/ LoRa-E5 Development Kit with v1.1.0 STM32Cube MCU Package for STM32WL series(SDK)
58 stars 27 forks source link

"Multiple definitions of hlptim1" when running FreeRTOS project #5

Closed ES0R closed 2 years ago

ES0R commented 2 years ago

I completed the LoraWAN end node tutorial for the LoRA E5 Dev board (https://wiki.seeedstudio.com/LoRa_E5_Dev_Board/#freertos-lorawan) and continued to the RTOS part. However, when running the code unaltered, it fails to compile. This is the case for both FreeRTOS and FreeRTOS_AT. I have been unable to locate the error. I have attached the console log for when it fails.

log.txt

rpiper commented 2 years ago

I just ran into this same issue when building the different FreeRTOS examples. There is a simple fix.

For each project, in Core/Inc/main.h, find the line:

LPTIM_HandleTypeDef hlptim1;

and change it to:

extern LPTIM_HandleTypeDef hlptim1;

and all three projects will build without any errors or warnings!

rpiper commented 2 years ago

Just added a pull request with these changes #6

lakshanthad commented 2 years ago

It is done. https://github.com/Seeed-Studio/LoRaWan-E5-Node/pull/6