Other Parts Discussed in Thread: HALCOGEN
Hi,
How do you enable CAN Remote Enable (bit 9 in IF1/IF2 Message Control Register) using HALCoGen?
Thanks,
Mandeep
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.
Other Parts Discussed in Thread: HALCOGEN
Hi,
How do you enable CAN Remote Enable (bit 9 in IF1/IF2 Message Control Register) using HALCoGen?
Thanks,
Mandeep
Hi Mandeep,
I see that HALCoGen today does not support setting the RmtEn control bit. I will let the HALCoGen tool development team know so that this can be added in a future update of the tool. In the mean time, you can add your own code to write to the IF1/2 MCTL control register to set the RmtEn bit. Please remember to add the code inside the
/* USER CODE BEGIN (5) */
/* USER CODE END */
You will also have to enable the CAN module initialization mode before writing to the MCTL register, and then also exit the initialization mode.
Regards, Sunil