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.

我想知道这个帖子的原理

Other Parts Discussed in Thread: TMS570LS3137

https://e2echina.ti.com/question_answer/microcontrollers/hercules/f/70/p/104148/277698?tisearch=e2e-quicksearch&keymatch=uint8#277698

发帖人是如何解决问题的呢(我看他上次发帖子两年前了已经),是修改canREG1->IF1CMD  = (uint8) 0xF8U;将uint8变成uint32吗,

请问原理是什么呢?

  • 您可以参考一下

    另外附上测试代码

    https://e2echina.ti.com/cfs-file/__key/communityserver-discussions-components-files/70/TMS570LS3137_5F00_CANTX_5F00_Test.7z

  • 谢谢您的回复,我是用的是标准can,并且是我上面发的原帖子一样,是部分能发部分不能,我自己查了手册资料,发现在TMS570LS09x 16 32-Bit RISC Flash Microcontroller Technical Reference Manual用户指南提到,IF1 Command Registers(DCAN IF1CMD)这个是32位的,而在HAL生成的代码中,声明成是uint8,请问是不是这里的问题
  • 嗯,用户指南是说的32位,而且定义的头文件那个位置肯定也是32位,所以自动生成的8位可能错了。