Problems to implement a stm32F3 library
Hi, I try to implement a static library to use the hal drivers.
I have generate a static lib with the firmware and the hal driver. If i build the lib all is running well.
Now i want to implement the lib within my project. Therefor i have a new project without firmware for the same target.
At eclipse i have a depend to the lib.
If i Build the project without the depend to the lib all is running well and i can run it at the Target and debug.
If i have the depend to the Lib i get the following build error.
/home/fritz/workspace/remodip/Debug/libremodip.a(hwinit.o): In function `hwinit’:
/home/fritz/workspace/remodip/Debug/../src/hwinit/hwinit.c:36: undefined reference to `HAL_Init’
makefile:53: die Regel für Ziel „HProto1.elf“ scheiterte
/home/fritz/workspace/remodip/Debug/../src/hwinit/hwinit.c:52: undefined reference to `HAL_GPIO_Init’
/home/fritz/workspace/remodip/Debug/libremodip.a(hwinit.o): In function `SystemClock_Config’:
/home/fritz/workspace/remodip/Debug/../src/hwinit/hwinit.c:82: undefined reference to `HAL_RCC_OscConfig’
/home/fritz/workspace/remodip/Debug/../src/hwinit/hwinit.c:94: undefined reference to `HAL_RCC_ClockConfig’
collect2: error: ld returned 1 exit status
hwinit is a little function to export from the lib.
Again the lib and the project alone i can build without any error. Togeter i have the error befor
What do i wrong?
Thanks
Fritz