Aim: To Interface iot development board for configuring the the usart and transfer strings though it
Components required: STM32 CUBE IDE, ARM IOT development board, STM programmer tool, Serial port utility tool
The full form of an ARM is an advanced reduced instruction set computer (RISC) machine, and it is a 32-bit processor architecture expanded by ARM holdings. The applications of an ARM processor include several microcontrollers as well as processors. The architecture of an ARM processor was licensed by many corporations for designing ARM processor-based SoC products and CPUs. This allows the corporations to manufacture their products using ARM architecture. Likewise, all main semiconductor companies will make ARM-based SOCs such as Samsung, Atmel, TI etc.
1.select the appropriate pins as gipo, in or out, USART or required options and configure
configure in the usart 2 as asynchronous mode and set the baud rate as 115200 as shown below
2.click on cntrl+S , automaticall C program will be generated
8. edit the program and as per required
5 connect the ARM board to power supply and usb
- check for execution of the output using run option
- Opend serial port utility and check the outpu t
#include "stdio.h"
#if defined(_ICCARM)||defined(_ARMCC_VERSION)
#define PUTCHAR_PROTOTYPE int fputc(int ch, FILE*f)
#elif defined (_GNUC_)
#define PUTCHAR_PROTOTYPE int __io_putchar(int ch)
#endif
while (1)
{
printf("Saveetha Engineering college\nKumar\n212223220048");
HAL_Delay(500);
}
}
PUTCHAR_PROTOTYPE
{
HAL_UART_Transmit(&huart2,(uint8_t*)&ch,1,0xFFFF);
return ch;
}
configuring and usart is accomplished and string data is visualized on the serial port utilty