Skip to content

Conversation

@dineshgit411
Copy link
Contributor

@dineshgit411 dineshgit411 commented Sep 10, 2025

By creating this pull request you agree to the terms in CONTRIBUTING.md.
https://github.com/Infineon/.github/blob/master/CONTRIBUTING.md
--- DO NOT DELETE ANYTHING ABOVE THIS LINE ---

CONTRIBUTING.md also tells you what to expect in the PR process.

Description
Modified digitalio implementation for recent test case update, due to different type of board variants we met failing the test case. Now we decided to use 4700 Relax Kit.
INPUT_PULLUP test case need small delay to stabilize the voltage in floating state so added.

Related Issue
Invalid pin and pinmode got hanged in test case, so left those test case.

Context
tested with XMC4700 Relax kit Board Shorted INPUT and OUTPUT with Jumper wire
image

Copy link
Member

@jaenrig-ifx jaenrig-ifx left a comment

Choose a reason for hiding this comment

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

👍


TEST_ASSERT_EQUAL_MESSAGE(LOW, digitalRead(TEST_PIN_DIGITAL_IO_INPUT), "Input Pin should be set to LOW initially");

//Due to few XMC digital I/O s connected in level translator its always in HIGH state even if we set PULLDOWN, so could not able to test this condition.
Copy link
Member

Choose a reason for hiding this comment

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

This comment is more helpful if next to the conditional #ifndef block...., or?

Copy link
Collaborator

@LinjingZhang LinjingZhang left a comment

Choose a reason for hiding this comment

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

We have to check again if the board type affect the test result.
In HiL, pull down is actually passing and pull up failed: https://github.com/Infineon/XMC-for-Arduino/actions/runs/17151188928/job/48663850307

The Board used in HiL has microSD and Ethernet - please check the one you used is identical.

Signed-off-by: MDin <Dinesh.M-EE@infineon.com>
Copy link
Collaborator

@LinjingZhang LinjingZhang left a comment

Choose a reason for hiding this comment

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

test pass. I will approve!

Signed-off-by: MDin <Dinesh.M-EE@infineon.com>
Copy link
Member

@jaenrig-ifx jaenrig-ifx left a comment

Choose a reason for hiding this comment

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

perfect!

@dineshgit411 dineshgit411 merged commit d7cf855 into main Sep 11, 2025
@dineshgit411 dineshgit411 deleted the XMC-digitalio-fix branch September 11, 2025 12:45
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