This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] MSPM0-SDK:MCAL 0.2.4:未定义的预处理标识符

Guru**** 2450510 points
Other Parts Discussed in Thread: MSPM0G3519

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1501332/mspm0-sdk-mcal-0-2-4-undefined-preprocessing-identifiers

器件型号:MSPM0-SDK
主题:MSPM0G3519中讨论的其他器件

工具/软件:

您好:

客户在为 M0G351x 构建一些 MCAL 驱动程序时遇到问题。 编译器为 IAR 9.60.3。

Mcal 组件中使用的宏 MemMap 头文件(如 VAR_NO_INIT_UNSPECIFIED)未在任何会导致编译器错误的 MCAL 文件中定义、"Error[Pe193]:0用于未定义的预处理标识符"VAR_NO_INIT_UNSPECIFICATED"。

- spi_safety_api 宏不是在 spi_safety_api 中生成的 Spi_Cfg。这会导致编译器错误"Error[Pe193]:0用于未定义的预处理标识符"spi_safety_api"。

以下是构建选项:

编译器标志:  
--- cpu_mode=thumb
---小端字节序
--调试
--- no_clustering
--- no_mem_idioms
-e
--- diag_suppress=Pa050
--- no_wrap_diagnostics
--- misrac2004=9.2
--- diag_warning=Pe193
--- diag_error=Pe193
---需要_原型
--- cpu=Cortex-M0+
--- no_explicate_zero_opt
--- fpu=none
-- Om
--D__MSPM0G3519__
-- DAUTOSAR_431.
汇编器标志:
--- cpu_mode thumb
--g
--r
链接器标志:  
--- enable_stack_usage
--- skip_dynamic_initialization
--- no_wrap_diagnostics
--- map mspm
--- no_out_extension
--- redirect _printf=_PrintfFullNoMb
--半主机
---条目_IAR_PROGRAM_START
--- text_out 语言环境
--- cpu=Cortex-M0+
---FPU=无

您能调查一下什么是错的吗? 谢谢你。


此致、
François μ s。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好  François、

    客户使用了哪个 MCAL 版本?

    B.R.

    Sal

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好  François、

    我在评论中看到了客户名称、请设置给我的电子邮件: sal-ye@ti.com 

    我将在电子邮件循环中邀请相关专家查看任何建议。

    B.R.

    Sal