Skip to main content
DBroo.1
Associate III
September 16, 2019
Question

Files included by STM32CubeMX V5.3.0 generate compiler errors

  • September 16, 2019
  • 1 reply
  • 814 views

When core_cm0plus.h and stm32g0xx_hal_cortex.h are included, IAR Embedded Workbench for ARM 8.40.1 generates a sequence of errors beginning with those shown below. I haven't found another definition for IRQn yet. See attachment for entire Build Window. Any ideas on the cause of these errors?

Error[Pe151]: a typedef name may not be redeclared as a parameter C:\Software\NextGen McLaren Working Folder\HandleSafety\SafetyCPU\Drivers\CMSIS\Include\core_cm0plus.h 848

Error[Pe018]: expected a ")" C:\Software\NextGen McLaren Working Folder\HandleSafety\SafetyCPU\Drivers\CMSIS\Include\core_cm0plus.h 848

Error[Pe109]: expression preceding parentheses of apparent call must have (pointer-to-) function type C:\Software\NextGen McLaren Working Folder\HandleSafety\SafetyCPU\Drivers\CMSIS\Include\core_cm0plus.h 852

This topic has been closed for replies.

1 reply

DBroo.1
DBroo.1Author
Associate III
September 20, 2019

Resolved