2014-11-09 05:34 PM
I am developing a product on an STM32F4Discovery using Keil UV5 and the STM32 Cube libraries. Mostly this has been straightforward but for some reason the USART functions were not included in the demo audio project. I use the HAL_USART_Init() function so added stm32f4xx_hal_usart.c to the Drivers/HAL group with the Manage Project Items tool and included stm32f4xx_hal_usart.h in main.h. Everything compiles ok until the end when I get the message :
STM32F4-DISCO\STM32F4-DISCO.axf: Error: L6218E: Undefined symbol HAL_USART_Init (referred from main.o). I have rebuilt all target files but this doesn't go away. Has anybody got the HAL_USART file to work, or have suggestions on what I am doing wrong ? (Please note I do want to use the HAL functions and not write direct to any hardware) Many thanks #stm32-usart2014-11-13 02:10 AM
Hi Mike,
Is the UART driver included in your project tree?-Mayla-To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2014-11-14 12:59 PM
2014-11-17 11:54 AM
2014-11-18 05:48 AM
Hi,
As described inhttp://www.st.com/web/en/resource/technical/document/user_manual/DM00105879.pdf
, ''stm32f4xx_hal_conf.h'' is a file that allows the user to customize the HAL drivers for a specific application.Please have a look to this user manual, it should be helpful.-Mayla-To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.