2014-04-29 01:22 PM
I'm having trouble during the Link stage after adding a component to the HAL driver in my project. I'm using IAR. I generated a project using STM32CubeMX. I then manually added use of the RTC component, by including stm32f4xx_hal_rtc.c and stm32f4xx_hal_rtc.h to the STM32F4xx_HAL_Driver group in my IAR Project. I can see the files being compiled but during the Link stage its not able to find a definition for HAL_RTC_Init() ( a function defined in stm32f4xx_hal_rtc.c). Do I have to do anything extra to HAL driver when I add some source files to it ?
ThanksKartik #stm32f439-iar2014-04-29 04:44 PM
Hi Aiyer,
I had once the same observation, but once you add a new function you have to rebuild all target files. After that step all works out. Good luck, Ron2014-04-29 04:51 PM
Hi Ron,
Thanks a lot for the help. I did try a complete rebuild but it still complained. Not sure if I'm missing some #define or something.RegardsKartik2014-04-30 01:08 AM
Hello Kartik
Do you have see the ''stm32f'xx_hal_conf.h'' file in the $(PROJ)/inc directory ?
uncomment the line for RTC.... (line 70)
Rémi
2014-04-30 09:54 AM