Immediate HardFault/Crash on Boot - Custom STM32H743VIT6 Board
Posted: Sat Aug 29, 2026 10:03 am
Hello everyone,
I am currently porting ChibiOS (version 21.11) to a custom board based on the T-Motor H743VIT6 flight controller. I am encountering an issue where the board immediately goes into what appears to be a HardFault or kernel panic (indicated by a solid red LED) right after flashing and booting.
Hardware Status:
The hardware is 100% functional. I have tested a baremetal application (.elf), and it runs perfectly on the board (blue LED stays on, USB CDC correctly enumerates on COM4).
Current Configuration & Checks Performed:
HSE Clock: Configured to 8 MHz (#define STM32_HSECLK 8000000U).
Power Supply: LDO enabled (PWR_CR3_LDOEN is set), as this board does not use an external SMPS.
Memory/Linker: The original bootloader was removed. I am flashing the ChibiOS .bin directly to 0x08000000 via STM32CubeProgrammer. The linker script has been adjusted accordingly: flash0 (rx) : org = 0x08000000, len = 2M.
Observations:
Flashing the .bin file to 0x08000000 is successful, but booting results in an immediate lockup (solid red LED).
Attempting to flash the .elf file via CubeProgrammer throws a "Failed to download the file" error, likely due to how STM32CubeProgrammer handles the DTCM/RAM sections defined in the ChibiOS linker for the H7.
Due to forum attachment limits, I have attached a zip file containing my specific project and board setup:
RT-TMOTOR-H743VIT6 (Project / demo source files and mcuconf.h, halconf.h, .ld script)
TMOTOR_H743VIT6 (Board configuration files: board.c, board.h, board.mk)
Could anyone point out what I might be missing in my PLL/clock configuration or the H7 startup sequence?
Thank you in advance for your help!
I am currently porting ChibiOS (version 21.11) to a custom board based on the T-Motor H743VIT6 flight controller. I am encountering an issue where the board immediately goes into what appears to be a HardFault or kernel panic (indicated by a solid red LED) right after flashing and booting.
Hardware Status:
The hardware is 100% functional. I have tested a baremetal application (.elf), and it runs perfectly on the board (blue LED stays on, USB CDC correctly enumerates on COM4).
Current Configuration & Checks Performed:
HSE Clock: Configured to 8 MHz (#define STM32_HSECLK 8000000U).
Power Supply: LDO enabled (PWR_CR3_LDOEN is set), as this board does not use an external SMPS.
Memory/Linker: The original bootloader was removed. I am flashing the ChibiOS .bin directly to 0x08000000 via STM32CubeProgrammer. The linker script has been adjusted accordingly: flash0 (rx) : org = 0x08000000, len = 2M.
Observations:
Flashing the .bin file to 0x08000000 is successful, but booting results in an immediate lockup (solid red LED).
Attempting to flash the .elf file via CubeProgrammer throws a "Failed to download the file" error, likely due to how STM32CubeProgrammer handles the DTCM/RAM sections defined in the ChibiOS linker for the H7.
Due to forum attachment limits, I have attached a zip file containing my specific project and board setup:
RT-TMOTOR-H743VIT6 (Project / demo source files and mcuconf.h, halconf.h, .ld script)
TMOTOR_H743VIT6 (Board configuration files: board.c, board.h, board.mk)
Could anyone point out what I might be missing in my PLL/clock configuration or the H7 startup sequence?
Thank you in advance for your help!