Skip to content

Comments

Merge NewLib Within Monorepo#241

Merged
dchansen06 merged 6 commits intomainfrom
MonorepoOptimizations
Feb 20, 2026
Merged

Merge NewLib Within Monorepo#241
dchansen06 merged 6 commits intomainfrom
MonorepoOptimizations

Conversation

@dchansen06
Copy link
Contributor

@dchansen06 dchansen06 commented Feb 19, 2026

Newlib Monorepo Optimizations

Problem and Scope

A variety of files were duplicated without reason for every single project which adds to bloat and presents more issues

Description

Create a STM32 Cube Common interface library and setup the HAL/LL interface libraries for each chip to link against it

  • stm32_assert.h
  • sysmem.c
  • syscalls.c

Move the system files into platform for the same treatment as the startup assembly

  • system_stm32g4xx.c
  • system_stm32u5xx.c
  • system_stm32l4xx.c

Gotchas and Limitations

None, these files should not have been edited previously

Testing

  • HOOTL testing
  • HITL testing
  • Human tested

Testing Details

  • Nucleo-G474
    • Analog Calibration
    • Blinky
    • Hello
    • CCU
    • ECU
    • ADC Testing
    • CAN Testing
  • GR25 Big Bird
    • Analog Calibration
    • Blinky
    • Hello
    • CCU
    • ECU
    • ADC Testing
    • CAN Testing
  • GR25 Dash Panel
    • Blinky
  • Nucleo-L476
    • Blinky

Larger Impact

Part of incremental efforts to further optimize the monorepo for creating boards and using peripherals without worrying about overhead

Additional Context and Ticket

Resolves #228

@dchansen06 dchansen06 added this to the Monorepo Niceties milestone Feb 19, 2026
@dchansen06 dchansen06 self-assigned this Feb 19, 2026
@dchansen06 dchansen06 added Documentation Improvements or additions to documentation Enhancement New feature or request CMake Anything related to or dealing with CMake Big Fry Something that is complex and/or large 3 NORMAL Important but not really a priority Boards Related to or involving any physical boards labels Feb 19, 2026
@dchansen06 dchansen06 force-pushed the MonorepoOptimizations branch from 279d247 to 78aa9f6 Compare February 20, 2026 04:19
Copy link
Contributor Author

@dchansen06 dchansen06 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed on GR25 Big Bird and Nucleo-G4 and GR25 Dash Panel

@dchansen06 dchansen06 requested a review from VihanJ February 20, 2026 04:58
dchansen06 and others added 5 commits February 19, 2026 22:23
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
I mean they are basically startup files in a way with how low to CMSIS they start

Signed-off-by: Daniel Hansen <dchansen06@gmail.com>
@dchansen06 dchansen06 force-pushed the MonorepoOptimizations branch from 78aa9f6 to b8d158c Compare February 20, 2026 06:23
Copy link
Contributor

@VihanJ VihanJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added LED GPIO writes to L4BLINKY main.c

@dchansen06 dchansen06 marked this pull request as ready for review February 20, 2026 08:47
@dchansen06 dchansen06 merged commit ff1cdda into main Feb 20, 2026
30 checks passed
@dchansen06 dchansen06 deleted the MonorepoOptimizations branch February 20, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 NORMAL Important but not really a priority 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 Documentation Improvements or additions to documentation Enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Investigate Merging NewLib Functions In Monorepo

2 participants