MPC5554DEMO bd. using CodeWarrior 5.6.1

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MPC5554DEMO bd. using CodeWarrior 5.6.1

1,729 次查看
johnmik
Contributor I
Hi:  John here.
 
I have a new MPC5554DEMO board setup and am using the CodeWarrior compiler / Processor expert enabled. And the Lauterbach "Trace32 system" with it.  Also using Vector CANalyzer as a source of J1939 test frames. I have setup the bit timing according to the J1939 spec 3.14. If I deviate from the setup of the bit timing I do get errors as seen in the ESR register. I've also tried setting the Global mask to "don't cares" etc. I've also gone over the order in which this CAN chan. has to be inited.
 My problem is that I can not get the FlexCan2 Bus to accept messages. I have tried many iterations of the init
code and cannot make this puppy work.  
Anyone have suggestions or code that will init CANA to receive J1939 frames?
 
Thanks
John
标签 (1)
标记 (1)
0 项奖励
回复
1 回复

848 次查看
johnmik
Contributor I
Problem fixed.
Message buffer ID register not setup the same as the older 68376 ID register, IDE, RTR bits moved to control/status register. Also there is no provision in CodeWarrior to select Extended frames, so the init software does not set the IDE bit that tells the CAN interface to accept extended ID frames. You need to do this yourself.
 
John
0 项奖励
回复