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

stm32l4.c: Fix RAM size argument to some target_add_ram() #1572

Merged

Conversation

jcamdr
Copy link
Contributor

@jcamdr jcamdr commented Jul 28, 2023

The device->sram1 and device->sram2 are in kilobyte. A multiplication by 1024 is required when used as an argument to target_add_ram()

Detailed description

Discord 2023-07-26:
@jcamdr: The patch multiply some RAM size by 1024U, because I can't understand how it can possibly work without that.
@dragonmux: ah, that is indeed a bug re the missing * 1024U's

Your checklist for this pull request

  • I've read the Code of Conduct
  • I've read the guidelines for contributing to this repository
  • It builds for hardware native (make PROBE_HOST=native)
  • It builds as BMDA (make PROBE_HOST=hosted)
  • I've tested it to the best of my ability
  • My commit messages provide a useful short description of what the commits do

Closing issues

The device->sram1 and device->sram2 are in kilobyte. A multiplication by 1024 is
required when used as an argument to target_add_ram()
Copy link
Member

@dragonmux dragonmux left a comment

Choose a reason for hiding this comment

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

LGTM, merging so we clear the way for the STM32U5 support

@dragonmux dragonmux added this to the v1.10 milestone Jul 28, 2023
@dragonmux dragonmux added the Bug Confirmed bug label Jul 28, 2023
@dragonmux dragonmux merged commit 1600f34 into blackmagic-debug:main Jul 28, 2023
6 checks passed
@jcamdr jcamdr deleted the fix/stm32l4-ram-size-argument branch July 28, 2023 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants