2019-10-06 11:56 AM
I am using STM32 for the first time. I have Atollic and STM32CubeMX installed. The controller I am using is STM32L475VG. I am trying to toggle the LED pin and am using HAL_GPIO_TogglePin to do it. But the compiler is throwing up an error 'undefined reference to `HAL_GPIO_TogglePin' '.
I have HAL_Init() and HAL_Delay() functions working fine.
Is there any file that needs to be included?
2019-10-06 01:40 PM
I would suggest to start from a working example, say a Nucleo board GPIO example.
2019-10-06 03:27 PM
Need source for GPIO library code in project, and enable GPIO module in stm32l4xx_hal_conf.h
2019-10-06 03:43 PM
Thank you for the reply. The GPIO module has been enabled in the stm32l4xx_hal_conf.h file. Which file should i include for GPIO library code ?
2019-10-06 04:17 PM
stm32l4xx_hal_gpio.c ?
Why not "grep" the library files for the function you're missing?