Other Parts Discussed in Thread: HALCOGEN
Hello,
I'm trying to transmit a CAN message with the DCAN module of a TMS570LS31x HDK board. I'm using DCAN drivers generated from HalCoGen together with FreeRTOS. The board is indeed transmitting CAN messages, but the problem is that everything in the messages is set to zero. Identifier = 0x00, DLC = 0, and there's no data in the data fields. I've tried to configure the mailbox to get a different identifier, but the identifier is zero regardless of my settings.
The mailbox I'm using has the following configuration:
canREG1->IF1MSK = 0x40000000U | ((0x000007FFU & 0x1FFFFFFFU) << 0U);
canREG1->IF1ARB = 0x80000000U | 0x40000000 | 0x20000000U | ((1U & 0x1FFFFFFFU) << 0U);
canREG1->IF1MCTL = 0x00001080U | 0x00000000U | 8U;
canREG1->IF1CMD = 0xF8;
canREG1->IF1NO = 1;
What may be the problem?
Thanks for your help!
Regards,
Alexandra