Skip to content

Conversation

@doxxx
Copy link
Contributor

@doxxx doxxx commented Nov 4, 2025

The SVD files contain errors for the definition of the SYSCTL RSTCAUSE ID enum:

  • The WWDT0 violation reset cause actually has a value of 14 (0x0e) according to the tech references.
  • It's actually part of the BOOT reset level, so it should be named BOOTWWDT0 according to the naming conventions in this PAC.
  • Only the G-series has a WWDT1 and a corresponding reset cause.

I've added transforms to correct these issues and updated the files in data/registers accordingly.

On a side note, the SVD for the C-series chips doesn't contain the SYSCTL RSTCAUSE register, even though it's described in the C-series tech reference. But I felt correcting this was out-of-scope for this change.

The SVD files contain errors for the definition of the SYSCTL RSTCAUSE ID enum:
- The WWDT0 violation reset cause actually has a value of 14 (0x0e) according to the tech references.
- It's actually part of the BOOT reset level, so it should be named BOOTWWDT0 according to the naming conventions in this PAC.
- Only the G-series has a WWDT1 and a corresponding reset cause.

I've added transforms to correct these issues and updated the files in data/registers accordingly.
# TODO SYSTEMCFG: Flatten WWDTLP[0..1]RSTDIS

# TODO RSTCAUSE: Match other chips?
# RSTCAUSE.ID.SYSWWDT0 should actually be called BOOTWWDT0 and have a value of 14
Copy link
Member

Choose a reason for hiding this comment

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

For consistency BOOTWWDT1?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

According to the tech reference, it's part of the SYSRST level:

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whether that's actually correct is anybody's guess. :D

@i509VCB i509VCB merged commit 9726c26 into mspm0-rs:master Nov 4, 2025
1 check passed
@doxxx doxxx deleted the sysctl-rstcause-wwdt0-fix branch November 4, 2025 21:47
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.

2 participants