Other Parts Discussed in Thread: MSPM0G3519
Tool/software:
Hello,
Customer is having trouble when building some MCAL drivers for M0G351x. Compiler is IAR 9.60.3.
Macros used in Mcal components MemMap header files like VAR_NO_INIT_UNSPECIFIED is not defined in any of MCAL files which cause compiler error "Error[Pe193]: zero used for undefined preprocessing identifier "VAR_NO_INIT_UNSPECIFIED".
- SPI_SAFETY_API macro is not generated in Spi_Cfg.h. which causes compiler error "Error[Pe193]: zero used for undefined preprocessing identifier "SPI_SAFETY_API".
Here are the build options:
compiler-flags:
- --cpu_mode=thumb
- --endian little
- --debug
- --no_clustering
- --no_mem_idioms
- -e
- --diag_suppress=Pa050
- --no_wrap_diagnostics
- --misrac2004=9.2
- --diag_warning=Pe193
- --diag_error=Pe193
- --require_prototypes
- --cpu=Cortex-M0+
- --no_explicit_zero_opt
- --fpu=none
- -Om
- -D__MSPM0G3519__
- -DAUTOSAR_431
assembler-flags:
- --cpu_mode thumb
- -g
- -r
linker-flags:
- --enable_stack_usage
- --skip_dynamic_initialization
- --no_wrap_diagnostics
- --map mspm
- --no_out_extension
- --redirect _Printf=_PrintfFullNoMb
- --semihosting
- --entry __iar_program_start
- --text_out locale
- --cpu=Cortex-M0+
- --fpu=None
Could you please investigate what's wrong? Thank you.
Best regards,
François.