I am running into issues with our custom board using the STM32H7A3ZI chip. I have followed the various guides when porting custom targets using the mbed-cli tools, specifically, using mbed export to generate the proper Makefile and mbed_config.h for my custom target. I haven’t had any issues with compilation, and i havent had any issues using any of the GPIO pins on the chip, PWM timers work as expected, and essentially the general things run as they should (blinker test, GPIO pin toggling, etc.).
My issues arise when trying to print serial messages. Specifically, with UART TX/RX. I have looked into different guides/forums on getting printing to work, specifically printf, with custom boards. The hitchhikers guide to printf in mbed OS 6 has been very helpful. However, for some reason I do not see any messages in my console while my program runs (multiple LED blinking to ensure code is running). I have changed the PinNames.h file in my custom target directory to define the CONSOLE_TX/RX pins to the defined MBED_CONF_TARGET_STDIO_UART_TX/RX which I set to the desired UART TX/RX pins on the chip (double checked with PeripheralPins.c) and I still do not see anything being printed to console. I have tried remapping the printf using the FileHandle mbed_override_console as well as defining a FILE* type for my unbuffered serial object and trying to print with fprintf. Nothing has worked for this chip in terms of communication however, all other aspects of the chip seem to work fine. Just printing to console and having messages show does not seem to work.
Any help or recommendations would be appreciated. Thank you in advance.
Best regards, Ioakeim