Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify some STM32L4 linker scripts into one #440

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

multiplemonomials
Copy link
Collaborator

@multiplemonomials multiplemonomials commented Mar 13, 2025

Summary of changes

Due to #439 , I figured it would help to update the STM32L4 linker scripts to support memory banks. This PR does that and also combines all the copy-pasted linker scripts into a single script.

I didn't want to dive too deeply into STM32L4 memory configurations at present b/c IDK if I have the mental bandwidth, so I didn't go full potato on unifying all the linker scripts and system clock files (yet). Just wanted to clean up these few duplicates and add memory bank support.

Impact of changes

  • All STM32L4 targets with two SRAM banks (where IRAM1 is the larger bank and IRAM2 is the smaller bank with the stack) now use a single linker script.
  • All of the above targets now support split heap (most did, but a few didn't for some reason)
  • All of the above targets now support memory bank configuration in the linker script

Migration actions required

Documentation


Pull request type

[X] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[] No Tests required for this change (E.g docs only update)
[] Covered by existing mbed-os tests (Greentea or Unittest)
[X] Tests / results supplied as part of this PR

Ran the heap tests on my NUCLEO_L452RE_P board, and everything seemed to run properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant