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.

insta-spinfoc添加ecan需要添加哪些文件(除了自带的can.h)?

Other Parts Discussed in Thread: CONTROLSUITE

自己尝试将官方Back2bak.c添加进insta-spinfoc例程,按手册重新配置了一遍,debug一直卡在initECana()中下面这块:

// Wait until the CPU no longer has permission to change the configuration registers
do
{
ECanaShadow.CANES.all = ECanaRegs.CANES.all;
} while(ECanaShadow.CANES.bit.CCE != 0 ); // Wait for CCE bit to be cleared..

发现ECanaShadow.CANES这个应该是变化了,但是寄存器CANES没变!

是否因为 can.h 只是定义了ecan的各个寄存器变量,但是还需要地址映射才能起作用?

望解答,谢谢