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.
您好!
我正在处理 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