AnsweredAssumed Answered

RESOLVED: USART functions returning "no definition error"

Question asked by Sel on Oct 12, 2016
Latest reply on Oct 12, 2016 by Sel
Hello, 

When using USART, is stm32f4xx_usart.h the only file I would need to include?
I currently have this:

#include "stm32f4xx.h"
#include "stm32f4_discovery.h"
#include "stm32f4xx_usart.h"
#include <string.h>

But, I am still getting the following:

Error[Li005]: no definition for "USART_SendData" [referenced from C:\work\Projects\STM\SandBox\STSW\08182016\STM32F4-Discovery_FW_V1.1.0\Project\Peripheral_Examples\TIM_PWM_Output\ 
EWARM\TIM_PWM_Output\Obj\main.o] 

Error[Li005]: no definition for "USART_ReceiveData" [referenced from C:\work\Projects\STM\SandBox\STSW\08182016\STM32F4-Discovery_FW_V1.1.0\Project\Peripheral_Examples\TIM_PWM_Output\ 
EWARM\TIM_PWM_Output\Obj\main.o] 
Error[Li005]: no definition for "USART_Init" [referenced from C:\work\Projects\STM\SandBox\STSW\08182016\STM32F4-Discovery_FW_V1.1.0\Project\Peripheral_Examples\TIM_PWM_Output\EWARM\ 
TIM_PWM_Output\Obj\main.o] 

Error while running Linker 


Any hints will be greatly appreciated. 

Thanks, 

Sel

Outcomes