2025-01-22 11:59 AM
If I have a bare h753 MCU on my custom board. What connection in terms of communication peripherals and connectors do I need to achieve. Basically, I want to bootload the MCU. The next step is to be able to program, monitor, test simultaneously. From my understanding, I need to have a JTAG/SWD pinouts/connector on the PCB to be able to bootload the MCU which can also be used to program/monitor the MCU. Upon reading the AN2606, I can bootload the MCU with SPI or CAN also, am I right in assuming that? Also while working with the nucleo board for the same, whenever I wanted a print statement on the computer I used UART, so do I need an USB-UART bridge to interface between USB data lines and initialized UART pins on the MCU? currently I am interfacing the USB data lines after required ESD protection directly to the USB_OTG_FS peripherals initialized separately.
2025-01-22 01:37 PM
> From my understanding, I need to have a JTAG/SWD pinouts/connector on the PCB to be able to bootload the MCU which can also be used to program/monitor the MCU
Correct. SWD is simpler (better, easier).
> I can bootload the MCU with SPI or CAN also, am I right in assuming that?
Yes you can use the built-in (so called "system ROM") bootloader, exactly as described in AN2606. To activate it you need to toggle the BOOT0 pin. SWD (debugger) does not require BOOT0 but it needs connection to NRST.
> do I need an USB-UART bridge to interface between USB data lines and initialized UART pins on the MCU?
Correct again, and consider that modern ST-LINK v3 have the USB-UART bridge included. So you can use just one USB cable for both debugger and the UART. Yes, need to initialize the UART on the MCU. On STM32H7 you can also use ITM (the SWD debugger again) for prints instead of a UART.
2025-01-23 02:45 AM
Currently, I am linking the USB D+ and D- lines directly with the USB_OTG_FS peripherals. If I want to send data from the UART lines back to my PC, then should I link the UART lines going through the USB-UART bridge with the same data lines coming from the usb or have another usb on the board for it. For this project, I dont want to use the STLINK therefore Is it better to have 2 USBs- one linked with USB_OTG_FS and other with -> USB-UART bridge -> UART RX/TX pins on MCU.