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.

TMS320F2800156-Q1: MCAN Loopback Example Setup Issue

Part Number: TMS320F2800156-Q1
Other Parts Discussed in Thread: C2000WARE, SYSCONFIG

Tool/software:

Hello,

I've been trying to adapt the MCAN Loopback example provided in C2000Ware 5.03 to a custom board utilizing this micro. I've verified all the hardware functionality works by setting up a blinky example to output on the MCAN_TX pin and can see the bus get driven to state on my oscilloscope. Additionally, the loopback example seems to be running correctly inspecting the txmsg and rxmsg values via debug. however, nothing is appearing on the bus/oscilloscope. I believe the only real difference between my setup and a launchpad is I am using a 20Mhz XTAL and attempting to drive the MCAN peripheral via sysclk.

As far as I can tell, the sysconfig file included with this example doesn't seem to configure anything about the MCAN module, as Board_init() never gets called from main, instead opting to have an MCANConfig() in mcan_ex1_loopback.c directly. Additionally, the sysconfig in this example doesn't seem to generate a device.h/.c (what is the point of the .sysconfig file in this example?).

Best I can guess, I am somehow missing a clock setup to tell MCAN to use sysclk instead of whatever it uses on the launchpad the example is built around? The device.c in this example doesn't seem to include any setup for the MCAN clock though, so I'm not sure where to begin. I've also tried to use sysconfig in the blinky example where it does generate a device.c, but as far as I can tell switching the MCANABCLKSEL mux in the MCAN A Clocktree in sysconfig doesn't seem to generate any new code either.

Any pointers on how to get the loopback example up and running on a custom board?