Skip to content

Setup Nicer MCU Support - #546

Draft
dchansen06 wants to merge 17 commits into
CubeMXSupportfrom
NicerCubeMcuSupport
Draft

Setup Nicer MCU Support#546
dchansen06 wants to merge 17 commits into
CubeMXSupportfrom
NicerCubeMcuSupport

Conversation

@dchansen06

@dchansen06 dchansen06 commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Nicer CubeMX MCU Support

Problem and Scope

Manually copied CMSIS, HAL/LL drivers, and linking layer means that only @dchansen06 and @Th3will fully understand how to add new boards and such

Description

Use FetchContent built into CMake to automate adding CMSIS, HAL/LL drivers, and the required layer; use sparse checkout to just get the needed files

Simplify the CMake of each project

Simplify the root CMake

Reprove that HOOTL testing works

Gotchas and Limitations

Linker scripts are automatically made by CubeMX only when configured for CMake and are not available from STM32 or Arm

SVD files will also need to be fully manual with https://www.st.com/content/st_com/en/search.html#q=svd-t=resources-page=1 or something

Testing

  • HOOTL testing
  • HITL testing
  • Human tested

Testing Details

Test support for all available boards and HOOTL

Larger Impact

Crazy reduction in internal design complexity if a few functions can take care of it

Additional Context and Ticket

Part of #526
Resolves #525

Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
@dchansen06 dchansen06 linked an issue Aug 23, 2026 that may be closed by this pull request
@dchansen06 dchansen06 self-assigned this Aug 23, 2026
@dchansen06 dchansen06 added Documentation Improvements or additions to documentation Enhancement New feature or request CMake Anything related to or dealing with CMake HOOTL Testing Having to do with or interacting with HOOTL testing 2 PRIORITY Important and a priority, but less than URGENT 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 Aug 23, 2026
@dchansen06 dchansen06 added this to the Monorepo Niceties milestone Aug 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 PRIORITY Important and a priority, but less than URGENT 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 HOOTL Testing Having to do with or interacting with HOOTL testing Peripheral Related to or involving a peripheral including abstractions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simplify Adding MCUs To Monorepo

1 participant