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

[#649] Add stm32h7 pwr peripheral and rcc/syscfg updates #112

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

shareefj
Copy link
Contributor

@shareefj shareefj commented Aug 5, 2024

Hi there,

This PR fixes the major issues I've encountered when trying to bring up an application based on the Rust stm32hxx-hal package, renode/renode#649. The RCC and SYSCFG peripherals have just been updated with some missing registers while I've added the STM32H7_PWR peripheral but I've also seen some similar work in tickets opened by @RallySmith, copied here for info.

A few questions:

  1. In the SYSCFG change, the main missing piece was the READY flag of bit 8. The STM user manual states that this is driven high in response to the CSION flag being set in the RCC_CR register. I've just assigned this to true. Is this okay or do I need to somehow pol the RCC register value?
  2. The STM32H7_PWR peripheral was created by copying the STM32WBA_PWR peripheral and modifying it. The registers are correct but I've not implemented all the AVD functionality to match what was there for PVD. For example, you seem to have methods that allow overriding of the voltage from a test? https://github.com/renode/renode-infrastructure/blob/master/src/Emulator/Peripherals/Peripherals/Miscellaneous/STM32WBA_PWR.cs#L37 Is that correct or is there another use of this method? Should I be replicating the same functionality and threshold generation for the analog domain?

This commit adds the STM32H7_PWR peripheral.
This commit adds some missing RCC registers causing panics in the
stm32h7xx-hal.
This commits adds the missing CompensationCellControl register which is
polled by the stm32h7xx-hal at startup.
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.

1 participant