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.

[参考译文] TMS320F28384D:uint32_t 显示为 unsigned int

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1047483/tms320f28384d-uint32_t-appear-as-unsigned-int

器件型号:TMS320F28384D

您好!

我正在处理 CM 内核、当我定义 uint32_T 变量时、似乎会生成无符号 int 变量。 例如在以下代码中

当 i ctrl=左键单击 uint32_t 时、它会将我指向 unsigned int -请参阅下面的内容

首先、我选择合适的代码生成工具  

我最终得到的值  

它是 unsigned int。

我还查看了调试器-当我将表达添加到观察窗口时、它将变为无符号整型。

您能解释一下原因吗? 我缺少什么?

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

    您好!  

    uint32_t 显示为 unsigned int、因为 ARM 编译器将其定义为 unsigned int、而表达式窗口将其解析为 unsigned int。   

    _stdint.h 快照

    _types.h 快照

    此致

    Siddharth