Commit 99444dc
committed
projects: max78000: gate prints on publish count
The ARM gated console output on the ADIS DATA_CNTR delta, so when the
sensor's sample counter froze (reads still succeeding) the threshold
was never reached and nothing printed at all -- the stream looked hung
even though both sensors were being read on the bus.
Gate the ~10 Hz decimation on the RISC-V publish counter (seq), which
always advances while the coprocessor is alive, so output keeps flowing
regardless of the sensor's counter. Keep gyro integration keyed off the
real DATA_CNTR delta, and warn once when DATA_CNTR stalls while seq
keeps climbing so the condition is observable.
Assisted-by: Claude Opus 4.8
Signed-off-by: Victor Pascu <victor.pascu@analog.com>1 parent a18d00f commit 99444dc
2 files changed
Lines changed: 36 additions & 13 deletions
Lines changed: 27 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
435 | 437 | | |
436 | 438 | | |
437 | 439 | | |
| |||
504 | 506 | | |
505 | 507 | | |
506 | 508 | | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
507 | 523 | | |
508 | 524 | | |
509 | 525 | | |
| |||
514 | 530 | | |
515 | 531 | | |
516 | 532 | | |
517 | | - | |
518 | | - | |
519 | | - | |
520 | | - | |
521 | | - | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
522 | 538 | | |
523 | | - | |
| 539 | + | |
524 | 540 | | |
525 | | - | |
| 541 | + | |
526 | 542 | | |
527 | 543 | | |
528 | 544 | | |
| |||
537 | 553 | | |
538 | 554 | | |
539 | 555 | | |
540 | | - | |
541 | | - | |
542 | | - | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
543 | 559 | | |
544 | 560 | | |
545 | 561 | | |
| |||
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
118 | 125 | | |
119 | 126 | | |
120 | 127 | | |
| |||
143 | 150 | | |
144 | 151 | | |
145 | 152 | | |
146 | | - | |
| 153 | + | |
147 | 154 | | |
148 | 155 | | |
149 | 156 | | |
| |||
175 | 182 | | |
176 | 183 | | |
177 | 184 | | |
178 | | - | |
| 185 | + | |
179 | 186 | | |
180 | 187 | | |
181 | 188 | | |
| |||
0 commit comments