# Problems with CAN code generation

**URL:** <https://forum.plexim.com/t/problems-with-can-code-generation/2778>\
**Category:** General\
**Created:** [December 26, 2025, 9:09am UTC](https://forum.plexim.com/t/problems-with-can-code-generation/2778 "2025-12-26T09:09:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuhangzhou](https://avatars.discourse-cdn.com/v4/letter/y/8797f3/32.png) [@yuhangzhou](https://forum.plexim.com/u/yuhangzhou)\
**Post date:** [December 26, 2025, 9:09am UTC](https://forum.plexim.com/t/problems-with-can-code-generation/2778/1 "2025-12-26T09:09:55Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Munadir\_Ahmed](https://dub1.discourse-cdn.com/flex006/user_avatar/forum.plexim.com/munadir_ahmed/32/1540_2.png) [@Munadir\_Ahmed](https://forum.plexim.com/u/Munadir_Ahmed)\
**Post date:** [December 26, 2025, 2:17pm UTC](https://forum.plexim.com/t/problems-with-can-code-generation/2778/2 "2025-12-26T14:17:20Z")

</div>

Hi yuhangzhou, if you could attach a model to reproduce the issue that would be very helpful. Also please provide:

- the TSP and PLECS versions you are utilizing
- the board you are using
- any other instructions that would be useful in recreating the issue
