Other Parts Discussed in Thread: HALCOGEN
Tool/software: Code Composer Studio
When sending data on the Can, you must also activate a Port??
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
When sending data on the Can, you must also activate a Port??
Hello,
To use CAN Tx/Rx pin for sending/receiving CAN messages in HALCoGen-->CANn-->CANn Port tab, pins must be set as functional (CAN) from Tx/Rx Pin Mode Section. To use CAN Tx/Rx pins as GIO they must be set as GIO .
When CANn Tx/Rx pin is set as functional (CAN) then Direction, Pull up/down and open drain are not applicable.
Hello,
From this tab you only have to set Tx/Rx pin as functional ( used by CAN module ). This is done in "Tx Pin Mode " and "Rx Pin Mode" section by connecting "I/O Block" to "CAN1:". In the picture above it is OK.
From Driver Enable Tab you have to enable CANn Driver.
You can follow the examples in HALCoGen for configuring CAN module.
Hello,
Please take a look at this thread where you can find attached project. HALCoGen project is included as well and you can use it as a reference: