Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
I have two of the LAUNCHXL boards (connected to two different computers) and I am attempting to get them to communicate with each other via CAN. I am using the example code in C2000Ware ex4 and ex5, simple transmit/receive. I have reconfigured the code to use CANB_BASE and GPIO_12_CANTXB and GPIO_17_CANRXB as in the manual for the launchXL. I have also changed the message ID to match in both examples. My issue is that despite getting TXOK/RXOK signals and the rxMsgCount increasing, I cannot see the data in the rxMsgData, it remains as all 0s. I have followed all of the debug tips in the Programming Examples for the TMS320x28xx eCAN document and have confirmed that: PCLKCR10 is 1 for CANA and CANB, the built in exs appear to use 32 bit ops, I'm not sure what EDIS really is but I could find no mention of it in the code, no interrupts are enabled, I've tried 2 different objIDs (which I think correspond to mailboxes), msgID is initialized in CAN_setupMessageObject (I've tried 0x200 and 0x955555555), I have not used acceptance mask filtering, and the IDs are identical.
Am I misunderstanding what rxMsgData is? Should I be able to see the data either update with the counter or when debugging is paused? If not is there a way I can do this? Here are some screenshots:
Thanks,
Youssef






