Skip to content
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

stm32g071 ADC drivers apply errata during sampling config #46124

Closed
FRASTM opened this issue May 31, 2022 · 0 comments · Fixed by #46125
Closed

stm32g071 ADC drivers apply errata during sampling config #46124

FRASTM opened this issue May 31, 2022 · 0 comments · Fixed by #46125
Assignees
Labels
area: DAC Digital-to-Analog Converter bug The issue is a bug, or the PR is fixing a bug platform: STM32 ST Micro STM32 priority: low Low impact/importance bug

Comments

@FRASTM
Copy link
Collaborator

FRASTM commented May 31, 2022

Describe the bug
When running the tests/drivers/dac/dac_loopback on the nucleo_g071rb, the dac loopback test case fails
The value read on the ADC channel 0 (pin PA0) is not correct.
The Sampling time is set at 1.5 cycle by the adc_stm32_setup_speed()

Please also mention any information which could help others to understand
the problem you're facing:

  • What target platform are you using?
  • What have you tried to diagnose or workaround this issue?
  • ...

To Reproduce
Steps to reproduce the behavior:

  1. west build -p auto -b nucleo_g071rb tests/drivers/dac/dac_loopback/
  2. west flash
  3. See error

Expected behavior
Test passed

Impact
Test coverage failure

Logs and console output

Running TESTSUITE dac_loopback_test                                             
===================================================================             
START - test_dac_loopback                                                       
                                                                                
    Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/dac/dac_loopback/src/t)
Value 705 read from ADC does not match expected range.                          
 FAIL - test_dac_loopback in 0.31 seconds                                       
===================================================================             
TESTSUITE dac_loopback_test failed.                                             
===================================================================             
PROJECT EXECUTION FAILED     

Environment (please complete the following information):

  • OS: Ubuntu
  • Toolchain : zephyr 0.14.0
  • Version used : 3.1.0-rc2

Additional context
Connect A0 to A2 pin (CN8) on the hw board to run the testcase

@FRASTM FRASTM added the bug The issue is a bug, or the PR is fixing a bug label May 31, 2022
@mbolivar-nordic mbolivar-nordic added priority: low Low impact/importance bug platform: STM32 ST Micro STM32 area: DAC Digital-to-Analog Converter labels May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: DAC Digital-to-Analog Converter bug The issue is a bug, or the PR is fixing a bug platform: STM32 ST Micro STM32 priority: low Low impact/importance bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants