2020-03-09 05:21 PM
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.
2020-03-09 05:39 PM
This is a duplicate of: https://community.st.com/s/question/0D53W0000009HQ9SAM/after-changing-from-stm32h753-y-to-vi-an-error-occurred
2020-03-09 05:44 PM
Examine the SCB register values in the HardFault_Hander to determine the source of the fault. Although it sure looks like your program isn't downloading right, so maybe verify that first.
2020-03-09 09:08 PM
As you said, I checked the SCD register and found that Hard Fault was occurring due to Bus Fault. So I followed BFAR’s address, but the area the address pointed to was the Reserved area. Is there anything else I can do to solve the problem?
2020-03-10 04:24 AM
I think you need to find the source of the verify errors before anything else. Spend some time with the map file and the linker description file to determine what goes where and maybe why a section of flash bank 2 appears to be wrong.
2020-03-10 07:32 PM
Thank you for your help!
As you said, the data value was written down in the region where the Verify error occurred in the normal operating chip, but no data was written on the chip I am using now. But I don't know the cause.
Also, Is map file right to say .map file? I don't know what the linker description file is.Are you talking about the .icf file? And... What do you mean, speed time?
P.S. If you need a .map file and a .icf file to solve this problem, can I send you an e-mail? (Please give me the email address.) This article does not go up.