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.
Tool/software: Code Composer Studio
Setting up CAN message configuration in HalCoGen (here version 04.07.01) does not work correctly.
There are interferences between CAN1 and CAN2 message configurations.
For example:
Setup CAN1:
Message 41 configuration: activate, TX, enable RTR: off, enable Int: off
Message 42 configuration: activate, RX, enable RTR: on, enable Int: on
Then goto CAN2, here configure message 41 and 42 the other way round:
Message 41 configuration: activate, RX, enable RTR: on, enable Int: on
Message 42 configuration: activate, TX, enable RTR: off, enable Int: off
Afterwards switch back to CAN1 message 41 and 42, and ... HalCoGen has changed the settings here, instead of what has been setup above now:
Message 41 configuration: Enable RTR is on now
Message 42 configuration: RX changed to TX, enable Int is off now instead of on.
That also works the other way round, not sure if there are more message pairs interacting like that or if more CAN interfaces are concerned.
So to get the configuration intended, the setup in HalCoGen can not be used.
Hello Dirk,
The initialization code of the CAN1 mailbox42 is not generated whatever it is enabled or not. The initialization code for other mailboxs are generated correctly.
To use mailbox, user needs to initialize CAN1 mailbox42 manually.