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

stm32f207 fails executing the tests/drivers/rtc/rtc_api #72888

Closed
FRASTM opened this issue May 16, 2024 · 1 comment · Fixed by #72880
Closed

stm32f207 fails executing the tests/drivers/rtc/rtc_api #72888

FRASTM opened this issue May 16, 2024 · 1 comment · Fixed by #72880
Assignees
Labels
area: RTC Real Time Clock 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 16, 2024

Describe the bug
Executing the tests/drivers/rtc/rtc_api on the nucleo_f207zg target fails

To Reproduce
Steps to reproduce the behavior:

  1. west build -p auto -b nucleo_f207zg tests/drivers/rtc/rtc_api
  2. set CONFIG_RTC_ALARM=n or CONFIG_RTC_ALARM=y as well
  3. west flash
  4. See error

Expected behavior

SUITE PASS - 100.00% [rtc_api]: pass = 2, fail = 0, skip = 1, total = 3 duration = 4.005 seconds                                              
 - PASS - [rtc_api.test_set_get_time] duration = 0.001 seconds                                                                                
 - PASS - [rtc_api.test_time_counting] duration = 4.001 seconds                                                                               
 - SKIP - [rtc_api.test_y2k] duration = 0.003 seconds                                                                                         

Impact
Testcase failure

Logs and console output

Running TESTSUITE rtc_api                                                                                                                     
===================================================================                                                                           
START - test_set_get_time                                                                                                                     
                                                                                                                                              
    Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/rtc/rtc_api/src/test_time.c:65: rtc_api_test_set_get_time: ((timer_get >= RTC_TEST_G)
Got unexpected time                                                                                                                           
 FAIL - test_set_get_time in 0.023 seconds                                                                                                    
===================================================================                                                                           
START - test_time_counting                                                                                                                    
                                                                                                                                              
    Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/rtc/rtc_api/src/test_time_incrementing.c:41: rtc_api_test_time_counting: (timer_get_)
Time is decrementing                                                                                                                          
 FAIL - test_time_counting in 0.017 seconds                                                                                                   
===================================================================    

Environment (please complete the following information):

  • OS: (e.g. Linux, MacOS, Windows) Ubuntu
  • Toolchain (e.g Zephyr SDK, ...) 0.16.3
  • Commit SHA d6d3c10
@FRASTM FRASTM added the bug The issue is a bug, or the PR is fixing a bug label May 16, 2024
@FRASTM
Copy link
Collaborator Author

FRASTM commented May 16, 2024

With DBG log:

Running TESTSUITE rtc_api                                                                                                                     
===================================================================                                                                           
START - test_set_get_time                                                                                                                     
D: Setting clock                                                                                                                              
D: Calendar set : 31/12/25 - 23h60m9s                                                                                                         
D: Calendar get : 31/11/25 - 17h41m37s                                                                                                    
                                                                                                                                              
    Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/rtc/rtc_api/src/test_time.c:65: rtc_api_test_set_get_time: ((timer_get >= RTC_TEST_G)
Got unexpected time                                                                                                                           
 FAIL - test_set_get_time in 0.032 seconds                                                                                                    
===================================================================                                                                           
START - test_time_counting                                                                                                                    
D: Setting clock                                                                                                                              
D: Calendar set : 31/12/25 - 23h59m55s                                                                                                        
D: Calendar get : 31/11/25 - 17h41m37s                                                                                                    
                                                                                                                                              
    Assertion failed at WEST_TOPDIR/zephyr/tests/drivers/rtc/rtc_api/src/test_time_incrementing.c:41: rtc_api_test_time_counting: (timer_get_)
Time is decrementing                                                                                                                          
 FAIL - test_time_counting in 0.026 seconds   

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: RTC Real Time Clock 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.

3 participants