Skip to content

Fix LCD RAM_COM register size on L4x6 #552

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

Merged
merged 4 commits into from
Oct 2, 2021

Conversation

AndreasKarg
Copy link

  • Make RAM_COM registers bigger
  • Replace individual segment flags with one 40-bit field

Note

If I understand https://www.st.com/content/st_com/en/search.html#q=lcd-t=products-page=1 and the reference manual (RM0351) right, the L4x6 is the only L4 with this LCD peripheral.

The SVDs for the 4x1, 2, 3 and 5 seem to contain the same peripheral definition though.

Due to this contradiction, I have only applied the patch to the 4x6 for now.
If someone could throw another pair of eyes on the documentation and confirm whether the other chips do or don't have this peripheral, I'm happy to update the PR and patch those as well.

If it turns out that the SVDs are wrong and the LCD peripherals don't exist, I suggest tackling that in a separate PR.

@github-actions
Copy link

Memory map comparison

@richardeoin
Copy link
Member

Hi @AndreasKarg, thanks for the PR!

It seems there's two groups of parts that have this "Segment LCD" peripheral:

  • L4x6, reference manual = RM0351
  • L4x3, reference manual = RM0394

Looking through the part table there are a couple of other parts that appear when filtering for "Segment LCD" (such as the L452) but then looking at the corresponding datasheet there's no mention of it. I'm guessing those are probably just a mistake on ST's website.

So could you apply this patch to the L4x3 also?

The patch itself looks good, but typically we put patches that "fix" the SVD (using _add/_modify/_delete etc) in the devices/ hierarchy. In this case I would put the patch somewhere like devices/common_patches/l4_lcd_segment.yaml. The files in peripherals/ are used for the field variants (the enumerated values) or ranges.

@adamgreig adamgreig force-pushed the L476_LCD_RAM_COM_size_increase branch from 6019687 to 83a1c12 Compare October 2, 2021 22:31
@github-actions
Copy link

github-actions bot commented Oct 2, 2021

Memory map comparison

@github-actions
Copy link

github-actions bot commented Oct 2, 2021

Memory map comparison

Copy link
Member

@adamgreig adamgreig left a comment

Choose a reason for hiding this comment

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

bors merge

@bors bors bot merged commit 970f68f into stm32-rs:master Oct 2, 2021
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.

4 participants