Skip to content

Setup New CAN Peripheral For CubeMX - #527

Merged
dchansen06 merged 72 commits into
CubeMXSupportfrom
CubeMXCan
Aug 16, 2026
Merged

Setup New CAN Peripheral For CubeMX#527
dchansen06 merged 72 commits into
CubeMXSupportfrom
CubeMXCan

Conversation

@dchansen06

@dchansen06 dchansen06 commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

CAN and CubeMX

Problem and Scope

Previous TimedCAN would not interface initialization with CubeMX, and would miss out on easily changeable settings

Description

Works to implement a CAN peripheral abstraction based off of TimedCAN (created with @an0tv, based off of CAN created by @VihanJ and @ahoysal) for use with CubeMX

Allows configuring the peripheral and settings through CubeMX with a disjoint set of options used to configure our layer on top

Gotchas and Limitations

Requires extensive testing

Testing

  • HOOTL testing
  • HITL testing
  • Human tested

Testing Details

Tested on a nucleo, verified bus off recovery, over spam, wrap around, etc

Larger Impact

Giant, everything can be configure through CubeMX which makes clocks easier

Additional Context and Ticket

Resolves #519 by deprecation
Works off of #526

@dchansen06 dchansen06 self-assigned this Jul 10, 2026
@dchansen06 dchansen06 added Documentation Improvements or additions to documentation Enhancement New feature or request CMake Anything related to or dealing with CMake 1 URGENT Urgent issue that needs a quick action and resolution Big Fry Something that is complex and/or large CTest Anything related to or dealing with CTest Peripheral Related to or involving a peripheral including abstractions Boards Related to or involving any physical boards labels Jul 10, 2026
@dchansen06 dchansen06 linked an issue Jul 10, 2026 that may be closed by this pull request
dchansen06 and others added 14 commits August 14, 2026 03:05
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
…pied over from TimedCAN

Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
…638107/1525038985175367720/1526432730273943714) to the monorepo

Also update extension list for freemarker support

Co-authored-by: TrainmanR <TrainmanR@users.noreply.github.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
… code, while before it would be erased on re-generation of the file.
…mation

Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
… builds

Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
…07/1525038985175367720/1527205781462712471) into git vcs

Co-authored-by: TrainmanR <TrainmanR@users.noreply.github.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
…mpile at all so sorry

Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Allows timer to be selected in the CubeMX GUI and
generates the necessary code for timer initializat
ion and interrupt handling.
@dchansen06
dchansen06 marked this pull request as ready for review August 15, 2026 23:58
@dchansen06
dchansen06 marked this pull request as draft August 15, 2026 23:58
Comment thread CUBEMXTESTING/Core/Src/main.c Fixed
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
@dchansen06
dchansen06 marked this pull request as ready for review August 16, 2026 00:24
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Comment thread CUBEMXTESTING/Core/Src/main.c Fixed
dchansen06 and others added 18 commits August 15, 2026 17:50
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
@dchansen06
dchansen06 merged commit 7b2c764 into main Aug 16, 2026
30 checks passed
@dchansen06
dchansen06 deleted the CubeMXCan branch August 16, 2026 06:52
@dchansen06 dchansen06 mentioned this pull request Aug 16, 2026
3 tasks
@dchansen06 dchansen06 linked an issue Aug 18, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1 URGENT Urgent issue that needs a quick action and resolution Big Fry Something that is complex and/or large Boards Related to or involving any physical boards CMake Anything related to or dealing with CMake CTest Anything related to or dealing with CTest Documentation Improvements or additions to documentation Enhancement New feature or request Peripheral Related to or involving a peripheral including abstractions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate CAN Peripheral Library To Timer-Tx Model Polish CAN Timed-Tx Peripheral

3 participants