C2000 CAN block error
1 次查看(过去 30 天)
显示 更早的评论
CAN Transmit error.
Board type: F28388D
Emulator: XDS100V3
- Simulink model description:
- Model execute period :10ms
2、Clocking
3、CAN configuration
4、Build model and open ccs project
The project Can’t work. I can’t see any CAN message from the CAN debug software.
And I want to see CAN register’s value when ccs step into debug mode. Issue occur to me. I can’t see the CAN register’s and Expression’s value like that.
Later ,I find f2838x_cpu1.gel is incorrect , the CANA registers address should map the page 3(peripheral memory),so I
modify the file
GEL_MapAddStr(0x00048000,1, 0x800, "R|W|AS4",0);
GEL_MapAddStr(0x0004A000,1, 0x800, "R|W|AS4",0);
to
GEL_MapAddStr(0x00048000,3, 0x800, "R|W|AS4",0);
GEL_MapAddStr(0x0004A000,3, 0x800, "R|W|AS4",0);
5、Project can’t work as well
After modified the f2838x_cpu1.gel,I can see the register’s value ,and data register’’value on the Register page is right . but CAN_ES(error register) is wrong. It’s Bus off bit is 1. On the Expression page, I find value of CAN Data register is not equal to that on Register page.
6、Finally I write CAN transmit module in another project accord to TI example demo.
It can work normally.so it proved the hardware is right.
So can you give me some suggestion about the issue.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 C2000 Microcontroller Blockset 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!