cancel
Showing results for 
Search instead for 
Did you mean: 

UART transmitter issue in NUCLEO-F746ZG board

Saranya_2003
Associate

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;

     }

}
3 REPLIES 3
AScha.3
Chief III

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.) . 

If you feel a post has answered your question, please click "Accept as Solution".
Saranya_2003
Associate

i am using the stm32cubeide for checking purpose i install RealTerm

//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 ??

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..