Skip to main content
Visitor II
July 13, 2024
Question

UART transmitter issue in NUCLEO-F746ZG board

  • July 13, 2024
  • 3 replies
  • 1695 views

i am facing issue with uart transmission the data to the realterm software i didnot recieving the data to console 

i am attaching the code here 

#include "stm32f746xx.h"
#include<stdint.h>
#include "uart.h"


int main(void)
{
	uart4_tx_init();
	RCC->AHB1ENR |= GPIOBEN;
	//	set the mode of the gpio pin for gpiob(pb0) and gpioc(pc13)
		GPIOB->MODER |=(1U<<0);
		GPIOB->MODER &=~(1U<<1);
	while(1)
	{

 	uart4_write('h');
//		GPIOB->ODR ^= PIN0;

 }

}
    This topic has been closed for replies.

    3 replies

    Super User
    July 13, 2024

    Why not using Cube/HAL ?  ( .. to setup+use the uart )

    If you dont "like" it, just use it, generate code, then look how its doing - so you see/know, how to do (even if you dont use it then.) . 

    Visitor II
    July 13, 2024

    i am using the stm32cubeide for checking purpose i install RealTerm

    Graduate II
    July 13, 2024

    //set PA2 as alternative function
    GPIOB->MODER |=(1U<<4);
    GPIOB->MODER &=~(1U<<5);

    Want GPIOA, not GPIOB

    Doesn't the NUCLEO-F746ZG use USART3 PD8 / PD9 for the ST-LINK VCP ??