cancel
Showing results for 
Search instead for 
Did you mean: 

Syntax error : STM32H7xx.dmac(203,69)

JongOk Baek
Associate III
Posted on December 28, 2017 at 03:11

Hello,

I am studying about STM32H7 using STM32H743 Nucleo-144 board with IAR.

So, I updated recently version of IAR such as ver.8.20.

When a downloading and debug, occur syntax error.

Error message is

=============================================================================

Fri Nov 03, 2017 16:39:50: IAR Embedded Workbench 8.20.1 (C:\Program Files (x86)\IAR Systems\EWARM8\arm\bin\armproc.dll)

Fri Nov 03, 2017 16:39:50: C:\Program Files (x86)\IAR Systems\EWARM8\arm\config\debugger\ST\STM32H7xx.dmac(203,69): [syntax error, unexpected '{', expecting ')' or ',']

Fri Nov 03, 2017 16:39:50: Loaded macro file: C:\Program Files (x86)\IAR Systems\EWARM8\arm\config\flashloader\ST\FlashSTM32H7xxx.mac

Fri Nov 03, 2017 16:39:50: Connected to ST-Link/V2-1 [SWD mode 1800 kHz] [Access port: 0] Firmware V2.J29.S18 (Probe no: 57142829)

Fri Nov 03, 2017 16:39:50: Initial reset was performed

Fri Nov 03, 2017 16:39:50: 2784 bytes downloaded and verified (17.43 Kbytes/sec)

Fri Nov 03, 2017 16:39:50: Loaded debugee: C:\Program Files (x86)\IAR Systems\EWARM8\arm\config\flashloader\ST\FlashSTM32H7xxx_CM7.out

Fri Nov 03, 2017 16:39:50: Target reset

Fri Nov 03, 2017 16:43:56: HardFault exception.

Fri Nov 03, 2017 16:43:56: The processor has escalated a configurable-priority exception to HardFault.

Fri Nov 03, 2017 16:43:56: An imprecise data access error has occurred.

Fri Nov 03, 2017 16:43:56:

Fri Nov 03, 2017 16:43:56: Exception occured at: 0x20000280

Fri Nov 03, 2017 16:43:56:

Fri Nov 03, 2017 16:43:56: See the call stack for more information.

Fri Nov 03, 2017 16:43:56: Unloaded macro file: C:\Program Files (x86)\IAR Systems\EWARM8\arm\config\flashloader\ST\FlashSTM32H7xxx.mac

Fri Nov 03, 2017 16:43:58: IAR Embedded Workbench 8.20.1 (C:\Program Files (x86)\IAR Systems\EWARM8\arm\bin\armproc.dll)

=============================================================================

So, I was checking this file.

Line 203 : if ((dbgmcu_cr &((0x3<<7) | (0x7<<0)) != ((0x3<<7) | (0x7<<0))) {

I think that need modify this sentence.

such as : if ((dbgmcu_cr &((0x3<<7) | (0x7<<0))) != ((0x3<<7) | (0x7<<0))) {

Please confirm me!

#dmac #iar #stm32h7
1 REPLY 1

Sorry, bumping old zombie unanswered questions off my feed

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..