2021-02-09 07:40 AM
Hi All,
I have created a new ST32IDE/ST32MX project for controller STM32G473CET6-01 at my own PCB.
USART, CRC and FREERTOS is added .
This project compiles fine, but the moment i press the debug button ,it goes straight to void HardFault_Handler(void) ?
This happens without pressing the Resume(F8) button after debugger is loaded.
Wondering why this happen?
As STM is new for me , i hope to get an easyer asnwer then "search the hardware fault", i didn't expect this problem with an empty project . :grinning_face_with_sweat:
The first thing i wanted to try do is remove RTOS, but it seems that not possible, do i need to create a new project in that case?
Thank you !
Solved! Go to Solution.
2021-02-10 10:59 PM
misterie solved, a wrong STM32 was placed . thanks for the responses !
2021-02-09 08:03 AM
Would create a new minimal project for testing. You can set a breakpoint at the very first instruction (Reset_Handler) instead of main: Debug Configuration > Startup and then step-trough the code. You should also check the .map file that the addresses look reasonable (Flash, SRAM). Sometimes there were issues with reading the right .ld file. RTOS should not matter before main().
2021-02-09 01:17 PM
The fault analyzer shows stacking error and MSP=2001FDD8
Is this a valid RAM address for this part?
-- pa
2021-02-09 02:40 PM
It has 128KB of RAM, the 0x20018000..0x2001FFFF is an alias of the CCM at 0x10000000..0x10007FFF
2021-02-10 10:59 PM
misterie solved, a wrong STM32 was placed . thanks for the responses !