@@ -28,7 +28,8 @@ and `bar` tasks.
28
28
### Breaking changes to support SPI
29
29
30
30
The ` set_uart ` method is replaced by ` set_device ` . Pin mappings on the Pico
31
- have changed.
31
+ have changed. Barring bug fixes or user suggestions I consider this project to
32
+ be complete.
32
33
33
34
## 1.1 Pre-requisites
34
35
@@ -134,6 +135,9 @@ going pulse is produced on pin 28, along with the console message "Hog". The
134
135
pulse can be used to trigger a scope or logic analyser. The duration of the
135
136
timer may be adjusted - see [ section 4] ( ./README.md~4-the-pico-code ) .
136
137
138
+ Note that hog detection will be triggered if the host application terminates.
139
+ The Pico cannot determine the reason why the ` hog_detect ` task has stopped.
140
+
137
141
# 2. Monitoring synchronous code
138
142
139
143
In general there are easier ways to debug synchronous code. However in the
@@ -218,12 +222,16 @@ Monitoring via the UART with default behaviour is started as follows:
218
222
from monitor_pico import run
219
223
run()
220
224
```
221
- By default the Pico does not produce console output and the timer has a period
222
- of 100ms - pin 28 will pulse if ident 0 is inactive for over 100ms. These
223
- behaviours can be modified by the following ` run ` args:
225
+ By default the Pico does not produce console output when tasks start and end.
226
+ The timer has a period of 100ms - pin 28 will pulse if ident 0 is inactive for
227
+ over 100ms. These behaviours can be modified by the following ` run ` args:
224
228
1 . ` period=100 ` Define the hog_detect timer period in ms.
225
- 2 . ` verbose=() ` Determines which ` ident ` values should produce console output.
229
+ 2 . ` verbose=() ` A list or tuple of ` ident ` values which should produce console
230
+ output.
226
231
3 . ` device="uart" ` Set to "spi" for an SPI interface.
232
+ 4 . ` vb=True ` By default the Pico issues console messages reporting on initial
233
+ communication status, repeated each time the application under test restarts.
234
+ Set ` False ` to disable these messages.
227
235
228
236
Thus to run such that idents 4 and 7 produce console output, with hogging
229
237
reported if blocking is for more than 60ms, issue
0 commit comments