Skip to content

Conversation

@butok
Copy link
Contributor

@butok butok commented Dec 5, 2025

  • Reads the Pad Status Register (PSR) to get the current GPIO input value, instead of the Data Register (DR).
    Following IMXRT1170RM.pdf "13.5.2 GPIO Write Mode".
  • Enables input buffer via Software Input On (SION) to get correct pin value in PSR for both input/output pins.
  • Issue has been discovered during Safety DIO self-tests.

- Reads the Pad Status Register (PSR) to get
  the current GPIO input value, instead of the Data Register (DR).
  Following IMXRT1170RM.pdf "13.5.2 GPIO Write Mode".
- Enables input buffer via Software Input On (SION)
  to get correct pin value in PSR for both input/output pins.
- Issue has been discovered during Safety DIO self-tests.

Signed-off-by: Andrej Butok <andrey.butok@nxp.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 5, 2025

@zejiang0jason
Copy link
Contributor

Hi @butok , could you please link the issue, or the test case name which can reproduce the issue? thanks.

@butok
Copy link
Contributor Author

butok commented Dec 8, 2025

Hi @zejiang0jason
No link, as it was discovered during testing of the bare-metal NXP functional safety library with Zephyr, which is external code (not upstream).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants