QUERY · ISSUE
tests/pyb/adcall.py: fails on NUCLEO_F411RE and hang board
port-stm32tests
Multiple tests in the pyb directory fail on a NUCLEAO_F411RE:
- The pyb/adcall.py has hard-coded pins, some of which (A2&A3) overlap with the uart used for the REPL. This causes the test to fail and the board to become unresponsive to pyboard/run-tests.
- 6 tests failed: extint pin pyb1 rtc servo uart
FAILURE pyb_extint.py
--- pyb_extint.py.exp 2020-04-15 08:45:44.599717251 -0700
+++ pyb_extint.py.out 2020-04-15 08:45:44.599717251 -0700
@@ -1,3 +1,4 @@
-4
-line: 4
-line: 4
+Traceback (most recent call last):
+ File "<stdin>", line 4, in <module>
+ValueError: Pin(X5) doesn't exist
+CRASH
\ No newline at end of file
FAILURE pyb_pin.py
--- pyb_pin.py.exp 2020-04-15 08:45:53.849714608 -0700
+++ pyb_pin.py.out 2020-04-15 08:45:53.849714608 -0700
@@ -1,14 +1,4 @@
-Pin(Pin.cpu.A7, mode=Pin.IN)
-A7
-7
-0
-Pin(Pin.cpu.A7, mode=Pin.IN, pull=Pin.PULL_UP)
-1
-Pin(Pin.cpu.A7, mode=Pin.IN, pull=Pin.PULL_DOWN)
-0
-0
-1
-0
-1
-0
-1
+Traceback (most recent call last):
+ File "<stdin>", line 3, in <module>
+ValueError: Pin(X8) doesn't exist
+CRASH
\ No newline at end of file
FAILURE pyb_uart.py
--- pyb_uart.py.exp 2020-04-15 08:45:56.709713791 -0700
+++ pyb_uart.py.out 2020-04-15 08:45:56.709713791 -0700
@@ -1,20 +1,10 @@
ValueError -1
ValueError 0
-UART 1
-UART 2
+ValueError 1
+ValueError 2
ValueError 5
UART 6
-UART(1, baudrate=9600, bits=8, parity=None, stop=1, flow=0, timeout=0, timeout_char=3, rxbuf=64)
-UART(1, baudrate=2400, bits=8, parity=None, stop=1, flow=0, timeout=0, timeout_char=7, rxbuf=64)
-0
-3
-4
-None
-1
-4
-None
-None
-UART(1, baudrate=9600, bits=8, parity=None, stop=1, flow=0, timeout=0, timeout_char=3, rxbuf=8)
-UART(1, baudrate=9600, bits=8, parity=None, stop=1, flow=0, timeout=0, timeout_char=3, rxbuf=0)
-UART(1, baudrate=9600, bits=8, parity=None, stop=1, flow=0, timeout=0, timeout_char=3, rxbuf=4)
-UART(1, baudrate=9600, bits=8, parity=None, stop=1, flow=0, timeout=0, timeout_char=3, rxbuf=0)
+Traceback (most recent call last):
+ File "<stdin>", line 11, in <module>
+ValueError: UART(1) doesn't exist
+CRASH
\ No newline at end of file
FAILURE pyb_pyb1.py
--- pyb_pyb1.py.exp 2020-04-15 08:45:54.039714554 -0700
+++ pyb_pyb1.py.out 2020-04-15 08:45:54.039714554 -0700
@@ -1,4 +1,6 @@
3
3
-True
-12
+Traceback (most recent call last):
+ File "<stdin>", line 30, in <module>
+AttributeError: 'module' object has no attribute 'have_cdc'
+CRASH
\ No newline at end of file
FAILURE pyb_servo.py
--- pyb_servo.py.exp 2020-04-15 08:45:55.849714036 -0700
+++ pyb_servo.py.out 2020-04-15 08:45:55.849714036 -0700
@@ -1,3 +1,4 @@
-<Servo 1 at 1500us>
-1500
-(630, 2410, 1490, 2460, 2190)
+Traceback (most recent call last):
+ File "<stdin>", line 1, in <module>
+ImportError: cannot import name Servo
+CRASH
\ No newline at end of file
FAILURE pyb_rtc.py
--- pyb_rtc.py.exp 2020-04-15 08:45:55.739714068 -0700
+++ pyb_rtc.py.out 2020-04-15 08:45:55.739714068 -0700
@@ -1,5 +1,5 @@
<RTC>
-(2014, 1, 1, 1, 0, 0, 1)
+(2014, 1, 1, 1, 0, 0, 0)
(2000, 1, 1, 1, 0, 0, 0)
(2000, 1, 31, 1, 0, 0, 0)
(2000, 12, 31, 1, 0, 0, 0)
CANDIDATE · PULL REQUEST
stm32: fix a few bugs with ADC on STM32WBxx MCUs and tweak tests so they pass on NUCLEO_WB55
port-stm32tests
Summary
A NUCLEO_WB55 is part of the Octoprobe hardware test stack. This PR aims to get the test suite fully passing on this board.
The main thing here is to tweak the existing tests/ports/stm32 tests, which were originally written for pyboards (PYBv1.x and PYBD-SFx). These tests should now pass on a wider variety of stm32 boards.
Testing
Tested on a NUCLEO_WB55 via ./run-tests.py -t 0 -d ports/stm32.
CI and Octoprobe will also test this PR.