nimaltd / gsm_v5

gsm module library for STM32 LL
GNU General Public License v3.0
232 stars 86 forks source link

UART_HandleTypeDef Error #27

Open Topkir opened 3 years ago

Topkir commented 3 years ago

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 commented 3 years ago

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

ch commented 3 years ago

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

Topkir commented 3 years ago

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