2024-07-13 12:05 AM
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;
}
}
2024-07-13 01:23 AM
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.) .
2024-07-13 03:53 AM
i am using the stm32cubeide for checking purpose i install RealTerm
2024-07-13 06:49 AM
//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 ??