My model includes a part related to CAN communication. At the beginning, I generated the code and successfully debugged it on the board. However, after some time, when I flashed the code to the board again, the CAN communication would have issues and would not work properly. During this period, I didn’t make any changes to the CAN communication part. I have encountered similar problems multiple times. The way to solve this problem is to copy the CAN-related part to another model, flash that other model to the board, and then the CAN communication works fine.
What could be the reason for this?