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;

     }

}
1 REPLY 1
AScha.3
Chief II

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