Skip to main content
Ekim.1
Associate III
March 9, 2020
Question

After changing from STM32H753 Y to VI, an error occurred.

  • March 9, 2020
  • 1 reply
  • 981 views

I compile using IAR Embedded Workbench, and download the code.

Recently, the chip was changed from STM32H753 Y to VI.

I tried to insert the code used in the Y version into the VI as it is, and I issued the following warning in IAR.

Mon Mar 09, 2020 09:22:50: Warning: There are warnings during download, see Log Window

Mon Mar 09, 2020 09:22:50: Loaded debugee: D:2. Project2. HURm7_codeEWARMHUR_IOExeHUR_IO.out

Mon Mar 09, 2020 09:22:50: Hardware reset with strategy 0 was performed

Mon Mar 09, 2020 09:22:50: Target reset

Mon Mar 09, 2020 09:22:50: There was 1 warning during the initialization of the debugging session.

It succeeded in downloading the code using STM32 Utility instead of IAR, but it did not work normally.

I used the oscilloscope to confirm that the Timer interrupt is operating normally.

I was working on debugs to solve this problem when I found out that my code was held in HardFault_Handler.

Thank you in advance.

Regards,

This topic has been closed for replies.

1 reply

berendi
Principal
March 9, 2020

> Warning: There are warnings during download, see Log Window

and what was the actual warning in the log window?

Ekim.1
Ekim.1Author
Associate III
March 9, 2020

This is all about the log window.

Mon Mar 09, 2020 15:00:01: IAR Embedded Workbench 8.30.1 (C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.1\arm\bin\armproc.dll) 

Mon Mar 09, 2020 15:00:02: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.1\arm\config\debugger\ST\STM32H7xx.dmac 

Mon Mar 09, 2020 15:00:02: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.1\arm\config\flashloader\ST\FlashSTM32H7xxx.mac 

Mon Mar 09, 2020 15:00:02: Connected to ST-Link/V2 [SWD mode 1800 kHz] [Access port: 0] Firmware V2.J34.S7 (Probe no: 21442487) 

Mon Mar 09, 2020 15:00:02: Initial reset was performed 

Mon Mar 09, 2020 15:00:02: 770 bytes downloaded and verified (8.00 Kbytes/sec) 

Mon Mar 09, 2020 15:00:02: Loaded debugee: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.1\arm\config\flashloader\ST\FlashSTM32H7xxx_512kB.out 

Mon Mar 09, 2020 15:00:02: Target reset 

Mon Mar 09, 2020 15:00:04: Unloaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.1\arm\config\flashloader\ST\FlashSTM32H7xxx.mac 

Mon Mar 09, 2020 15:00:04: Downloaded D:\2. project\2. HUR\m7_code\EWARM\HUR_IO\Exe\HUR_IO.out to flash memory. 

Mon Mar 09, 2020 15:00:04: Hardware reset with strategy 2 was performed 

Mon Mar 09, 2020 15:00:05: 55540 bytes downloaded into FLASH and verified (18.56 Kbytes/sec) 

Mon Mar 09, 2020 15:00:05: Warning:  

Mon Mar 09, 2020 15:00:05: Verify error at address 0x0810D8E0, target byte: 0xFF, byte in file: 0x16 

Mon Mar 09, 2020 15:00:05: Warning:  

Mon Mar 09, 2020 15:00:05: Verify error at address 0x0810D8E1, target byte: 0xFF, byte in file: 0x14 

Mon Mar 09, 2020 15:00:05: Warning:  

Mon Mar 09, 2020 15:00:05: Verify error at address 0x0810D8E2, target byte: 0xFF, byte in file: 0x00 

Mon Mar 09, 2020 15:00:05: Warning:  

Mon Mar 09, 2020 15:00:05: Verify error at address 0x0810D8E3, target byte: 0xFF, byte in file: 0x00 

Mon Mar 09, 2020 15:00:05: Warning:  

Mon Mar 09, 2020 15:00:05: Verify error at address 0x0810D8E4, target byte: 0xFF, byte in file: 0x20 

Mon Mar 09, 2020 15:00:05: Warning:  

Mon Mar 09, 2020 15:00:05: Verify error at address 0x0810D8E5, target byte: 0xFF, byte in file: 0x00 

Mon Mar 09, 2020 15:00:05: Warning:  

Mon Mar 09, 2020 15:00:05: Verify error at address 0x0810D8E6, target byte: 0xFF, byte in file: 0x01 

Mon Mar 09, 2020 15:00:05: Warning:  

Mon Mar 09, 2020 15:00:05: Verify error at address 0x0810D8E7, target byte: 0xFF, byte in file: 0x20 

Mon Mar 09, 2020 15:00:05: Warning:  

Mon Mar 09, 2020 15:00:05: Verify error at address 0x0810D8E8, target byte: 0xFF, byte in file: 0x02 

Mon Mar 09, 2020 15:00:05: Warning:  

Mon Mar 09, 2020 15:00:05: Verify error at address 0x0810D8E9, target byte: 0xFF, byte in file: 0xC5 

Mon Mar 09, 2020 15:00:05: Warning:  

Mon Mar 09, 2020 15:00:05: Verify error at address 0x0810D8EA, target byte: 0xFF, byte in file: 0x26 

Mon Mar 09, 2020 15:00:05: Warning:  

Mon Mar 09, 2020 15:00:05: Verify error at address 0x0810D8EB, target byte: 0xFF, byte in file: 0x10 

Mon Mar 09, 2020 15:00:05: Warning:  

Mon Mar 09, 2020 15:00:05: Verify error at address 0x0810D8EC, target byte: 0xFF, byte in file: 0x08 

Mon Mar 09, 2020 15:00:05: Warning:  

Mon Mar 09, 2020 15:00:05: Verify error at address 0x0810D8ED, target byte: 0xFF, byte in file: 0x2C 

Mon Mar 09, 2020 15:00:05: Warning:  

Mon Mar 09, 2020 15:00:05: Verify error at address 0x0810D8EE, target byte: 0xFF, byte in file: 0x43 

Mon Mar 09, 2020 15:00:05: Warning:  

Mon Mar 09, 2020 15:00:05: Verify error at address 0x0810D8EF, target byte: 0xFF, byte in file: 0xB3 

Mon Mar 09, 2020 15:00:05: Warning:  

Mon Mar 09, 2020 15:00:05: Verify error at address 0x0810D8F0, target byte: 0xFF, byte in file: 0x26 

Mon Mar 09, 2020 15:00:05: Warning:  

Mon Mar 09, 2020 15:00:05: Verify error at address 0x0810D8F1, target byte: 0xFF, byte in file: 0x3C 

Mon Mar 09, 2020 15:00:05: Warning:  

Mon Mar 09, 2020 15:00:05: Verify error at address 0x0810D8F2, target byte: 0xFF, byte in file: 0x21 

Mon Mar 09, 2020 15:00:05: Warning:  

Mon Mar 09, 2020 15:00:05: Verify error at address 0x0810D8F3, target byte: 0xFF, byte in file: 0x01 

Mon Mar 09, 2020 15:00:08: Warning: There were warnings during download, see Log Window 

Mon Mar 09, 2020 15:00:08: Loaded debugee: D:\2. project\2. HUR\m7_code\EWARM\HUR_IO\Exe\HUR_IO.out 

Mon Mar 09, 2020 15:00:08: Hardware reset with strategy 0 was performed 

Mon Mar 09, 2020 15:00:08: Target reset 

Mon Mar 09, 2020 15:00:08: There was 1 warning during the initialization of the debugging session. 

 Mon Mar 09, 2020 15:02:08: HardFault exception. 

Mon Mar 09, 2020 15:02:08: The processor has escalated a configurable-priority exception to HardFault. 

Mon Mar 09, 2020 15:02:08:  A precise data access error has occurred (CFSR.PRECISERR, BFAR) at data address 0x1fffff5a. 

Mon Mar 09, 2020 15:02:08:  

Mon Mar 09, 2020 15:02:08: Exception occured at PC = 0x8102462, LR = 0x810d5f1 

Mon Mar 09, 2020 15:02:08:  

Mon Mar 09, 2020 15:02:08: See the call stack for more information. 

Mon Mar 09, 2020 15:02:08: IAR Embedded Workbench 8.30.1 (C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.1\arm\bin\armproc.dll) 

And I found out one more thing.

When all the codes related to USART_Tx are removed, the code was not held in HardFault_Handler, although the IAR sends a warning message.