-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Issue with lack of hardware support causing mbed_hal-reset_reason test failure #11792
Comments
Internal Jira reference: https://jira.arm.com/browse/MBOTRIAGE-2311 |
@0xc0170 Please review. This issue is reported by Cypress team. |
@0xc0170 ? |
Not all reset reasons are supported by a target, test checks 3 reset reasons - assuming they are always present - software, pin reset and watchdog. In this case, pin reset is not available? I don't see get_capabilities functionality so we can't check what reset reasons are actually supported by a target and can be tested. Is that correct? Would adding this function to HAL, help to skip this pin test as it is not available for the target reported above. |
Yes, in this case, pin reset is not available. Yea adding a get_capabilities would be a good addition I think. It would additionally allow testing of more reset reasons (e.g wake_low_power), assuming they can be programmatically triggered and hardware support exists. |
cc @ARMmbed/mbed-os-hal Please review, looks like reset reason needs also an extension |
Agreed, a |
Is this issue also the same cause for the failure of watchdog test ? |
@jamesbeyond What watchdog test failure do you mean? I didn't really see a watchdog test failure (my testing never got there since it failed out before that point). Is there a general watchdog test failure being observed with other hardware? |
On our end, we are seeing
So have you seen these @dustin-crossman ? |
@jamesbeyond Regardless, I don't think any of that is related to the reset reason issue. |
Hey @dustin-crossman, why is the sleep failure is expected, what is the cause? |
The sleep failures occur because our UART hardware prevents the board from entering sleep while there is traffic over UART (like during GT tests). We're looking at workarounds on our end. The boards are still capable of sleep mode for most purposes so that's why we keep the SLEEP feature on. |
Hey @fkjagodzinski how goes implementing the get_capabilities() function for this issue? |
@dustin-crossman I'm really sorry to keep you waiting this long. Unfortunately, I was busy with other stuff, but I think I'll finally be able to update our code in following days. |
Great! Thanks a bunch! |
@dustin-crossman, please see #12139. |
@dustin-crossman confirmed in a post on #12139 that the PR will allow us to address this issue. A future PR from Cypress will be necessary to fully close the issue. We (Cypress) will create that PR once #12139 is committed to master. Thanks, Ian |
Description of defect
During the mbed_hal-reset_reason greentea test the device is reset using DAP and the test expects to see a PIN_RESET reason upon reset (host_tests/reset_reason.py lines: 146-153). The Cypress PSoC6 hardware does not support a reset reason for a DAP reset. During a DAP reset the reset reason registers are the same as during a basic power on and is therefore unable to differentiate the reasons. There is no way to indicate that the test is invalid for the particular hardware under test and, therefore, the test should be disabled/bypassed.
Target(s) affected by this defect ?
Tested on CY8CPROTO_062_4343W but should be seen on all Cypress PSoC6 hardware
Toolchain(s) (name and version) displaying this defect ?
Tested on GCC_ARM but should be toolchain-agnostic
What version of Mbed-os are you using (tag or sha) ?
The cypress reset reason hal api implementation is not yet merged but this branch has an implementation: https://github.com/dustin-crossman/mbed-os/tree/cyhal_reset_reason_issue
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
mbed-cli: 1.10.1
How is this defect reproduced ?
mbed test -t GCC_ARM -m CY8CPROTO_062_4343W -n "tests-mbed_hal-reset_reason"
The text was updated successfully, but these errors were encountered: