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.

[参考译文] RM46L852:VIM_CHANNELS 的定义错误(在 sl_sys_vim.h 中)?

Guru**** 2606725 points
Other Parts Discussed in Thread: HALCOGEN

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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/750412/rm46l852-wrong-define-for-vim_channels-in-sl_sys_vim-h

器件型号:RM46L852
主题中讨论的其他器件:HALCOGEN

尊敬的 Hercules 团队:

 

我有一个来自客户的关于使用 TI 安全库的 VIM_SRAM 测试的问题。

当为 RM46使用 HalCoGen 时、它生成一个具有#define VIM_CHANNELS 96U 的 sys_vim.h。

在 TI 安全库(版本2.4.0)中、您可以在 sl_sys_vim.h 中找到以下代码(第52..60行):

/* VIM 常规配置*/

#if defined (_TMS570LS31x_)|| defined (_TMS570LS12x_)|| defined (_TMS570LS09x_)|| Defined (_TMS570LS07x_)|| Defined (_RM48x_)|| Defined (_RM46x_)|| Defined (_RM44x_)|| Defined (_RM42x_)| TMS570LS04x_(_RM42x_)

#define SL_VIM_CHANNELS 96U

#endif

#if defined (_TMS570LC43x_)|| defined (_RM57Lx_)

#define SL_VIM_CHANNELS 128U

#endif

 

这意味着、在这里、RM46 MCU 的#define VIM_CHANNELS 将设置为96U。

根据数据表、VIM 有128个通道。

您能否澄清这是否是 TI 安全库以及 HalCoGen 工具中的错误?

 

谢谢、

BR、
Matthias

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、Matthias、
    他们使用的是哪个版本的 HALCoGen? 我在 HALCoGen 04.07.00中验证了该定义的值为128。

    这是 Hercules 安全诊断库头文件中的一个错误、但不在安全诊断库中使用。
    谢谢、
    Girish