Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UART_HandleTypeDef Error #27

Open
Topkir opened this issue Apr 13, 2021 · 3 comments
Open

UART_HandleTypeDef Error #27

Topkir opened this issue Apr 13, 2021 · 3 comments

Comments

@Topkir
Copy link

Topkir commented Apr 13, 2021

54

Hi Nimaltd,

Can you help me please. I have problem buf ı can not solve that.

ERROR MESSAGE:

Build started: Project: sim
*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'sim'
compiling atc.c...
../Inc/atc.h(54): error: #20: identifier "UART_HandleTypeDef" is undefined
UART_HandleTypeDef *usart;
../Inc/atc.h(55): warning: #29-D: expected an expression
#elif
../Inc/atc.h(70): error: #20: identifier "UART_HandleTypeDef" is undefined
void atc_init(atc_t *atc, const char *name, UART_HandleTypeDef *USARTx, void *found);
../Inc/atc.h(71): warning: #29-D: expected an expression
#elif
..\Src\atc.c(32): error: #20: identifier "UART_HandleTypeDef" is undefined
void atc_init(atc_t *atc, const char *name, UART_HandleTypeDef *USARTx, void *found)
..\Src\atc.c(33): warning: #29-D: expected an expression
#elif
..\Src\atc.c(42): warning: #513-D: a value of type "void " cannot be assigned to an entity of type "void ()(char *)"
atc->found = found;
..\Src\atc.c(44): warning: #29-D: expected an expression
#elif
..\Src\atc.c(79): warning: #223-D: function "HAL_UART_Transmit_IT" declared implicitly
HAL_UART_Transmit_IT(atc->usart,data,len);
..\Src\atc.c(81): warning: #29-D: expected an expression
#elif
..\Src\atc.c(102): warning: #223-D: function "HAL_UART_Receive_IT" declared implicitly
HAL_UART_Receive_IT(atc->usart, &atc->tmp, 1);
..\Src\atc.c(103): warning: #29-D: expected an expression
#elif
..\Src\atc.c: 9 warnings, 3 errors
compiling call.c...
../Inc/atc.h(54): error: #20: identifier "UART_HandleTypeDef" is undefined
UART_HandleTypeDef *usart;
../Inc/atc.h(55): warning: #29-D: expected an expression
#elif
../Inc/atc.h(70): error: #20: identifier "UART_HandleTypeDef" is undefined
void atc_init(atc_t *atc, const char *name, UART_HandleTypeDef *USARTx, void *found);
../Inc/atc.h(71): warning: #29-D: expected an expression
#elif
..\Src\call.c: 2 warnings, 2 errors
compiling gprs.c...
../Inc/atc.h(54): error: #20: identifier "UART_HandleTypeDef" is undefined
UART_HandleTypeDef *usart;
../Inc/atc.h(55): warning: #29-D: expected an expression
#elif
../Inc/atc.h(70): error: #20: identifier "UART_HandleTypeDef" is undefined
void atc_init(atc_t *atc, const char *name, UART_HandleTypeDef *USARTx, void *found);
../Inc/atc.h(71): warning: #29-D: expected an expression
#elif
..\Src\gprs.c: 2 warnings, 2 errors
compiling gsm.c...
../Inc/atc.h(54): error: #20: identifier "UART_HandleTypeDef" is undefined
UART_HandleTypeDef *usart;
../Inc/atc.h(55): warning: #29-D: expected an expression
#elif
../Inc/atc.h(70): error: #20: identifier "UART_HandleTypeDef" is undefined
void atc_init(atc_t *atc, const char *name, UART_HandleTypeDef *USARTx, void *found);
../Inc/atc.h(71): warning: #29-D: expected an expression
#elif
..\Src\gsm.c: 2 warnings, 2 errors
compiling gsmCallback.c...
../Inc/atc.h(54): error: #20: identifier "UART_HandleTypeDef" is undefined
UART_HandleTypeDef *usart;
../Inc/atc.h(55): warning: #29-D: expected an expression
#elif
../Inc/atc.h(70): error: #20: identifier "UART_HandleTypeDef" is undefined
void atc_init(atc_t *atc, const char *name, UART_HandleTypeDef *USARTx, void *found);
../Inc/atc.h(71): warning: #29-D: expected an expression
#elif
..\Src\gsmCallback.c: 2 warnings, 2 errors
compiling msg.c...
../Inc/atc.h(54): error: #20: identifier "UART_HandleTypeDef" is undefined
UART_HandleTypeDef *usart;
../Inc/atc.h(55): warning: #29-D: expected an expression
#elif
../Inc/atc.h(70): error: #20: identifier "UART_HandleTypeDef" is undefined
void atc_init(atc_t *atc, const char *name, UART_HandleTypeDef *USARTx, void *found);
../Inc/atc.h(71): warning: #29-D: expected an expression
#elif
..\Src\msg.c: 2 warnings, 2 errors
compiling stm32f4xx_it.c...
../Src/stm32f4xx_it.c(209): warning: #223-D: function "gsm_rxCallback" declared implicitly
gsm_rxCallback();
../Src/stm32f4xx_it.c: 1 warning, 0 errors
compiling main.c...
../Inc/atc.h(54): error: #20: identifier "UART_HandleTypeDef" is undefined
UART_HandleTypeDef *usart;
../Inc/atc.h(55): warning: #29-D: expected an expression
#elif
../Inc/atc.h(70): error: #20: identifier "UART_HandleTypeDef" is undefined
void atc_init(atc_t *atc, const char *name, UART_HandleTypeDef *USARTx, void *found);
../Inc/atc.h(71): warning: #29-D: expected an expression
#elif
../Src/main.c: 2 warnings, 2 errors
"sim\sim.axf" - 15 Error(s), 22 Warning(s).
Target not created.
Build Time Elapsed: 00:00:26
54

@ch
Copy link

ch commented Apr 13, 2021

@a-topkir Are you using LL or HAL version?

@ch
Copy link

ch commented Apr 13, 2021

HAL...
UART_HandleTypeDef defined in stm32f1xx_hal_uart.c
Did you include it?

@Topkir
Copy link
Author

Topkir commented Apr 13, 2021

I use ll version. Thank you. I include it. Solved

@Topkir Topkir closed this as completed Apr 13, 2021
@Topkir Topkir reopened this Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants