Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

uart problem

STP.Asghari

New Member
Hi everyone
I encounter an error in the iar compiler when entering the following code.
Code:
#define Enter    HAL_UART_Transmit(&huart1,(unsigned char*)E,1,10);
#define CR       HAL_UART_Transmit(&huart1,(unsigned char*)C,1,10);
#define GIM      HAL_UART_Transmit(&huart1,(unsigned char*)G,1,10);
#define SUB      HAL_UART_Transmit(&huart1,(unsigned char*)S,1,10);

The error is written in the following line:
Code:
 Error[Pe136]: struct "<unnamed>#35" (declared Hat line 326 of "H:\IAR Codes\3- Sim800\sim800\Drivers\CMSIS\Device\ST\STM32F4xx\Include\stm32f401xc.h"h) has no field "HAL_UART_Transmit" H:\IAR Codes\3- Sim800\sim800\Core\Src\main.c 207

Please tell me why this error occurred and how to solve it. thank you.
 

Latest threads

New Articles From Microcontroller Tips

Back
Top