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.
The comment for the can_init() code generated by enabling the DCAN 4 is as follows:
/** @b Initialize @b CAN1: */
/** - Setup control register
* - Disable automatic wakeup on bus activity
* - Local power down mode disabled
* - Disable DMA request lines
* - Enable global Interrupt Line 0 and 1
* - Disable debug mode
* - Release from software reset
* - Enable/Disable parity or ECC
* - Enable/Disable auto bus on timer
* - Setup message completion before entering debug state
* - Setup normal operation mode
* - Request write access to the configuration registers
* - Setup automatic retransmission of messages
* - Disable error interrupts
* - Disable status interrupts
* - Enter initialization mode
*/
canREG4->CTL = (uint32)0x00000000U
| (uint32)0x00000000U
| ((uint32)0x0000000AU << 10U)
| (uint32)0x00020043U;
As you can see from the highlighted line above,it states initialization for CAN1 when it is actually meant for DCAN4