Log Values from STM32H747IGTX M7 Core on PuTTY
Hello,
So right now I am trying to get my printf to work on CubeIDE and printing the respective output on PuTTY. I can't seem to figure out why it doesnt work when people on Youtube simply press run and their code works.
For context...
1. Using M7 core and running USART3 in async mode with
a) Baud Rate: 115200 Bit/s, 8 Bits, no Parity, 1 Stop Bit
b) Checked USART3 global interrupt
c) Checked pin config (no overlap)
2. In Putty
a) Checked all parameter match
b) COM port matches
Nothing seems to print in PuTTY although it does connect. If any more information is required I will send immediately. Thanks in advance!!
This is the pseudo code of what I am trying to run
#include "main.h"
#include "usart.h"
#include <arm_math.h>
void SystemClock_Config(void);
void PeriphCommonClock_Config(void);
int main(void)
{
HAL_Init();
SystemClock_Config();
PeriphCommonClock_Config();
HAL_HSEM_FastTake(HSEM_ID_0);
HAL_HSEM_Release(HSEM_ID_0,0);
MX_GPIO_Init();
MX_DMA_Init();
MX_I2C1_Init();
MX_QUADSPI_Init();
MX_I2S1_Init();
MX_SPI3_Init();
MX_USB_OTG_FS_PCD_Init();
MX_USART3_UART_Init();
while (1)
{
/* USER CODE END WHILE */
// printf("success");
HAL_UART_Transmit(&huart3, (uint8_t*) "Good", 3, 100);
HAL_Delay(1000);
/* USER CODE BEGIN 3 */
}
}
extern "C"
{
int _write(int file, char *ptr, int len)
{
HAL_UART_Transmit(&huart3, (uint8_t*)ptr, len, HAL_MAX_DELAY);
return len;
}
}
