Commit c1f95c7
committed
fix(logging): wait for SWO TPIU drain before jumping to app
After ZEPHYR_BOOT_LOG_STOP drains the log buffer to the ITM FIFO,
the TPIU may still be clocking out bytes on the SWO pin. The app
reinitializes ITM on startup, discarding any in-flight data.
Wait for ITM BUSY to clear, then busy-wait 1ms for the TPIU output
buffer to finish transmitting at the SWO baud rate.
Signed-off-by: Jay Beavers <jay@tolttechnologies.com>1 parent d9c2ba1 commit c1f95c7
1 file changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
678 | 694 | | |
679 | 695 | | |
680 | 696 | | |
| |||
0 commit comments