Why does hard fault occur in STM32H753 VI?
When I was trying to download the code to STM32H753VI using IAREmbeddedWorkbench, IARissued a warning to me.
Warning: There were warningsduringdownload, seeLogWindow
After pressing the OKbutton, I checked and found my code was held in HardFault_Handler.
This is allabout the IARwindowlogwindow.
Tue Mar 10, 202009:16:41:IAREmbeddedWorkbench8.30.1 (C:\ProgramFiles (x86)\IARSystems\EmbeddedWorkbench 8.1\arm\bin\armproc.dll)
TueMar10, 202009:16:41: Loaded macrofile: C:\Program Files (x86)\IARSystems\EmbeddedWorkbench 8.1\arm\config\debugger\ST\STM32H7xx.dmac
TueMar10, 202009:16:41: Loaded macrofile: C:\Program Files (x86)\IARSystems\EmbeddedWorkbench 8.1\arm\config\flashloader\ST\FlashSTM32H7xxx.mac
TueMar10, 202009:16:41: Connected to ST-Link/V2 [SWDmode1800kHz] [Accessport:0] FirmwareV2.J34.S7 (Probeno:21442487)
Tue Mar 10, 202009:16:41: Initial reset was performed
Tue Mar 10, 202009:16:41: 770 bytes downloaded and verified (9.64Kbytes/sec)
TueMar10, 202009:16:41: Loaded debugee:C:\ProgramFiles (x86)\IARSystems\EmbeddedWorkbench 8.1\arm\config\flashloader\ST\FlashSTM32H7xxx_512kB.out
Tue Mar 10, 202009:16:41:Targetreset
TueMar10, 202009:16:43:Unloadedmacrofile: C:\Program Files (x86)\IARSystems\EmbeddedWorkbench 8.1\arm\config\flashloader\ST\FlashSTM32H7xxx.mac
Tue Mar 10, 202009:16:43:Downloaded D:\2. project\2. HUR\m7_code\EWARM\HUR_IO\Exe\HUR_IO.out to flash memory.
TueMar10, 2020 09:16:43:Hardwarereset with strategy 2 was performed
TueMar10, 2020 09:16:44:55540 bytes downloaded into FLASH and verified (18.77 Kbytes/sec)
Tue Mar 10, 202009:16:44:Warning:
Tue Mar 10, 202009:16:44:Verifyerror at address 0x0810D8E0, target byte:0xFF, byte in file: 0x16
Tue Mar 10, 202009:16:44:Warning:
TueMar10, 202009:16:44:Verifyerror at address 0x0810D8E1, target byte:0xFF, byte in file: 0x14
Tue Mar 10, 202009:16:44:Warning:
Tue Mar 10, 202009:16:44:Verifyerror at address 0x0810D8E2, target byte:0xFF, byte in file: 0x00
Tue Mar 10, 202009:16:44:Warning:
Tue Mar 10, 202009:16:44:Verifyerror at address 0x0810D8E3, target byte:0xFF, byte in file: 0x00
Tue Mar 10, 202009:16:44:Warning:
Tue Mar 10, 202009:16:44:Verifyerror at address 0x0810D8E4, target byte:0xFF, byte in file: 0x20
Tue Mar 10, 202009:16:44:Warning:
Tue Mar 10, 202009:16:44: Verify error at address 0x0810D8E5, targetbyte:0xFF, byte in file: 0x00
Tue Mar 10, 202009:16:44:Warning:
Tue Mar 10, 202009:16:44:Verifyerror at address 0x0810D8E6, target byte:0xFF, byte in file: 0x01
Tue Mar 10, 202009:16:44:Warning:
Tue Mar 10, 202009:16:44:Verifyerror at address 0x0810D8E7, target byte:0xFF, byte in file: 0x20
Tue Mar 10, 202009:16:44:Warning:
Tue Mar 10, 202009:16:44: Verify error at address 0x0810D8E8, target byte:0xFF, byte in file: 0x02
Tue Mar 10, 202009:16:44:Warning:
Tue Mar 10, 202009:16:44:Verifyerror at address 0x0810D8E9, target byte:0xFF, byte in file: 0xC5
Tue Mar 10, 202009:16:44:Warning:
Tue Mar 10, 202009:16:44:Verifyerror at address 0x0810D8EA, target byte:0xFF, byte in file: 0x26
Tue Mar 10, 202009:16:44:Warning:
Tue Mar 10, 202009:16:44:Verifyerror at address 0x0810D8EB, target byte:0xFF, byte in file: 0x10
Tue Mar 10, 202009:16:44:Warning:
Tue Mar 10, 202009:16:44: Verify error at address 0x0810D8EC, target byte:0xFF, byte in file: 0x08
Tue Mar 10, 202009:16:44:Warning:
Tue Mar 10, 202009:16:44:Verifyerror at address 0x0810D8ED, target byte:0xFF, byte in file: 0x2C
Tue Mar 10, 202009:16:44:Warning:
Tue Mar 10, 202009:16:44:Verifyerror at address 0x0810D8EE, target byte:0xFF, byte in file: 0x43
Tue Mar 10, 202009:16:44:Warning:
TueMar10, 202009:16:44:Verifyerror at address 0x0810D8EF, target byte:0xFF, byte in file: 0xB3
Tue Mar 10, 202009:16:44:Warning:
Tue Mar 10, 202009:16:44:Verifyerror at address 0x0810D8F0, target byte:0xFF, byte in file: 0x26
Tue Mar 10, 202009:16:44:Warning:
TueMar10, 202009:16:44:Verifyerror at address 0x0810D8F1, target byte:0xFF, byte in file: 0x3C
Tue Mar 10, 202009:16:44:Warning:
Tue Mar 10, 202009:16:44:Verifyerror at address 0x0810D8F2, target byte:0xFF, byte in file: 0x21
Tue Mar 10, 202009:16:44:Warning:
TueMar10, 202009:16:44:Verifyerror at address 0x0810D8F3, target byte:0xFF, byte in file: 0x01
Tue Mar 10, 202009:17:22: Warning: There were warningsduringdownload, seeLogWindow
TueMar10, 202009:17:22:Loadeddebugee:D:\2. project\2. HUR\m7_code\EWARM\HUR_IO\Exe\HUR_IO.out
Tue Mar 10, 202009:17:22:Hardwarereset with strategy0 was performed
Tue Mar 10, 202009:17:22:Targetreset
TueMar10, 2020 09:17:22: There was 1 warningduring the initialization of the debuggingsession.
I tried to find the cause, but I do not know the cause.
Why did this Hard Fault happen?
For reference, when downloading the code to STM32H753 Y, IAR did not issue these warnings, nor did the code be caught in HardFault_Handler.
Thank you in advance.
