STM32H743ZIT6 - Guidance on setting up environment

Anusudhan_Kesavan
Wed, 16 Apr 2025 09:13:47 +0000
Hello world!

Hi everyone,

I am working with a custom board using the STM32H743ZIT6 microcontroller and have set up Mbed Studio (desktop IDE) with Mbed OS 6.17.0. I started with a simple blink LED program and selected the NUCLEO-H743ZI2 as the target for debugging purposes. However, the program compiles and loads successfully onto the board, then the program gets trapped in the HardFault_Handler.

Any advice on setting up Mbed OS for the STM32H743ZIT6 would be greatly appreciated!!!

pyocd.core.exceptions.TransferFaultError: Memory transfer fault (read) @ 0xe00f0fbc-0xe00f1043
0001298:INFO:cortex_m:CPU core #0 is Cortex-M7 r1p1
0001301:INFO:cortex_m:FPU present: FPv5-D16-M
0001303:INFO:dwt:4 hardware watchpoints
0001306:INFO:fpb:8 hardware breakpoints, 1 literal comparators
0001315:INFO:coresight_target:Deasserting reset post connect
0001323:INFO:server:Semihost server started on port 4444 (core 0)
0001348:INFO:gdbserver:GDB server started on port 50000 (core 0)
Reading symbols from c:/Users/Anusudhan Kesavan/Mbed Programs/mbed-os-H743-blinky/BUILD/NUCLEO_H743ZI2/ARMC6/mbed-os-H743-blinky.elf...
warning:
Loadable section "RW_IRAM1" outside of ELF segments
warning:
Loadable section "RW_DMARxDscrTab" outside of ELF segments
warning:
Loadable section "RW_DMATxDscrTab" outside of ELF segments
warning:
Loadable section "RW_Rx_Buffb" outside of ELF segments
done.
0001444:INFO:gdbserver:Client connected to port 50000!
warning: Loadable section "RW_IRAM1" outside of ELF segments
warning: Loadable section "RW_DMARxDscrTab" outside of ELF segments
warning: Loadable section "RW_DMATxDscrTab" outside of ELF segments
warning: Loadable section "RW_Rx_Buffb" outside of ELF segments
0x08000424 in HardFault_Handler ()
0001470:INFO:gdbserver:Attempting to load argon
0001471:INFO:gdbserver:Attempting to load freertos
0001471:INFO:gdbserver:Attempting to load rtx5
0001471:INFO:gdbserver:rtx5 loaded successfully
Resetting target with halt
Successfully halted device on reset
Attached to debugger on port 50000
0028355:INFO:loader:Erased chip, programmed 65536 bytes (64 pages), skipped 65536 bytes (64 pages) at 4.77 kB/s
Resetting target with halt
Successfully halted device on reset
Image loaded: c:/Users/Anusudhan Kesavan/Mbed Programs/mbed-os-H743-blinky/BUILD/NUCLEO_H743ZI2/ARMC6/mbed-os-H743-blinky.elf
Note: automatically using hardware breakpoints for read-only addresses.
[New Thread 2]
[New Thread 603996484]
[New Thread 603996552]
[New Thread 603996416]
Thread
2 "Handler mode" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 2]
0x08000424 in HardFault_Handler ()

2 posts - 1 participant