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

keyboards/annepro2/ld: Add per-variant linker scripts #24999

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

Conversation

mkopec
Copy link

@mkopec mkopec commented Mar 9, 2025

C18 has an MCU with 16K SRAM, up from C15's 8K.

Split the linker script into C15 and C18 variants to make use of the larger RAM capacity of C18.

Description

Anne Pro 2 has two variants, C15 and C18. C15's MCU has 8K SRAM, C18's has 16K.

To enable VIA on the C18 variant, the RAM size must be increased.

I was not able to test C15, only the C18 variant. I've only checked that the C15 variant compiles and uses the correct linker script (which is unchanged).

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout (addition or update)
  • Documentation

Issues Fixed or Closed by This PR

Checklist

  • My code follows the code style of this project: C, Python
  • I have read the PR Checklist document and have made the appropriate changes.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

C18 has an MCU with 16K SRAM, up from C15's 8K.

Split the linker script into C15 and C18 variants to make use of the
larger RAM capacity of C18.

Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
@mkopec
Copy link
Author

mkopec commented Mar 9, 2025

Not sure what to do about the missing copyright headers, as I don't know the original authors, and I haven't touched those files at all

@zvecr
Copy link
Member

zvecr commented Mar 9, 2025

You can ignore those lint errors, as they were not introduced by this PR.

@qmk qmk deleted a comment Mar 9, 2025
@drashna drashna requested a review from a team March 10, 2025 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants