Skip to content

Issue with lack of hardware support causing mbed_hal-reset_reason test failure #11792

@dustin-crossman

Description

@dustin-crossman

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"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions