cancel
Showing results for 
Search instead for 
Did you mean: 

Files included by STM32CubeMX V5.3.0 generate compiler errors

DBroo.1
Associate III

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

1 REPLY 1
DBroo.1
Associate III

Resolved