-
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
Cypress: PWM FPGA test wrong assert #11769
Comments
Internal Jira reference: https://jira.arm.com/browse/MBOTRIAGE-2294 |
@0xc0170 Could you please take a look? |
According to the requirements: Lines 42 to 43 in 419556b
In the test we are setting output duty-cycle to Looks like everything is ok, but the mbed-os/targets/TARGET_Cypress/TARGET_PSOC6/cy_pwmout_api.c Lines 51 to 54 in 419556b
|
@mprse are you going to fix it ? |
I can create a PR, but I don't have a Cypress board to test the fix. |
@mprse I can test it on Cypress board. |
Implementation of pwmout_read() is not consistent with the requirements. This function should return the current float-point output duty-cycle in range <0.0f, 1.0f>. Currently it returns decimal percentage value.
The fix can be found here: PR #11776. |
@mprse Looks good all PWM test PASSED on CY8CKIT_062_WIFI_BT. |
[HTST][INF] host test detected: default_auto |
Fix for issue #11769 (Cypress: PWM FPGA test wrong assert)
Implementation of pwmout_read() is not consistent with the requirements. This function should return the current float-point output duty-cycle in range <0.0f, 1.0f>. Currently it returns decimal percentage value.
Implementation of pwmout_read() is not consistent with the requirements. This function should return the current float-point output duty-cycle in range <0.0f, 1.0f>. Currently it returns decimal percentage value.
Description of defect
Cypress: PWM FPGA test wrong assert
In file mbed_hal_fpga_ci_test_shield/pwm/main.c line 146 expected value is 10 ms actual (measured) is 10 ms. But log file shows: "1077477377 - peripheral tested on port: peripheral=(1077477377) PWM_OUT=(D7) ...:146::FAIL: Expected 0.100000 Was 10.000000"
I run test case "Case("PWM - period: 10 ms, fill: 10%, api: period/write", one_peripheral<PWMPort, DefaultFormFactor, pwm_period_fill_test<10, 10, PERIOD_WRITE> >),"
Target(s) affected by this defect ?
Tested on CY8CKIT_062_WIFI_BT
Toolchain(s) (name and version) displaying this defect ?
Tested on GCC_ARM
What version of Mbed-os are you using (tag or sha) ?
Latest
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
N/A
How is this defect reproduced ?
Always
The text was updated successfully, but these errors were encountered: