have a problem on linker
I built the project using the STM32CubeExpansion_LRWAN_V1.1.2 example, and I want to use the EEPROM function in LoRa Application.
I am trying to declare eeprom related code in a separate file, but the linker cannot import HAL functions.
.\mlm32l07x01\Lora.axf: Error: L6218E: Undefined symbol HAL_FLASHEx_DATAEEPROM_Erase (referred from eeprom.o).
.\mlm32l07x01\Lora.axf: Error: L6218E: Undefined symbol HAL_FLASHEx_DATAEEPROM_Lock (referred from eeprom.o).
.\mlm32l07x01\Lora.axf: Error: L6218E: Undefined symbol HAL_FLASHEx_DATAEEPROM_Program (referred from eeprom.o).
.\mlm32l07x01\Lora.axf: Error: L6218E: Undefined symbol HAL_FLASHEx_DATAEEPROM_Unlock (referred from eeprom.o).
// eeprom.h
#ifndef __USER_EEPROM_H__
#define __USER_EEPROM_H__
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
// #include "stm32l0xx_hal.h"
// #include "stm32l0xx_hal_def.h"
// #include "stm32l0xx_hal_conf.h"
// #include "stm32l0xx_hal_flash.h"
#include "stm32l0xx_hal_flash_ex.h"
#include "tools.h"
#include "tiny_sscanf.h"
// eeprom.c
include "eeprom.h"Also, if use "include" the hal.h file or other file to use HAL_Delay, the following warring occurs.
Where am I doing stupid things?
..\..\inc\hw_conf.h(93): warning: #47-D: incompatible redefinition of macro "assert_param" (declared at line 312 of "..\..\inc\stm32l0xx_hal_conf.h")