With the current implementation reported timestamps are different when tpiu_baud changes.
With tpiu_freq = 120000000 and tpiu_baud = 1000000:
Frontend /home/tmplt/.cargo/bin/rtic-scope-frontend-dummy: @2084 ns (+2084) [good]: [Task { name: "app::hardware", action: Entered }]
Frontend /home/tmplt/.cargo/bin/rtic-scope-frontend-dummy: @3584 ns (+1500) [good]: [Task { name: "app::software", action: Entered }]
Frontend /home/tmplt/.cargo/bin/rtic-scope-frontend-dummy: @4001 ns (+417) [good]: [Task { name: "app::software", action: Exited }]
Frontend /home/tmplt/.cargo/bin/rtic-scope-frontend-dummy: app::software,3584,4001
Frontend /home/tmplt/.cargo/bin/rtic-scope-frontend-dummy:
Frontend /home/tmplt/.cargo/bin/rtic-scope-frontend-dummy: @4251 ns (+250) [good]: [Task { name: "app::hardware", action: Returned }, Task { name: "app::hardware", action: Exited }]
Frontend /home/tmplt/.cargo/bin/rtic-scope-frontend-dummy: app::hardware,2084,4251
Frontend /home/tmplt/.cargo/bin/rtic-scope-frontend-dummy:
Frontend /home/tmplt/.cargo/bin/rtic-scope-frontend-dummy: @8251 ns (+4000) [bad!]: []
With same tpiu_freq and tpiu_baud = 4000000:
Frontend /home/tmplt/.cargo/bin/rtic-scope-frontend-dummy: @84 ns (+84) [good]: [Task { name: "app::hardware", action: Entered }, Task { name: "app::software", action: Entered }, Task { name: "app::software", action: Exited }]
Frontend /home/tmplt/.cargo/bin/rtic-scope-frontend-dummy: app::software,84,84
Frontend /home/tmplt/.cargo/bin/rtic-scope-frontend-dummy:
Frontend /home/tmplt/.cargo/bin/rtic-scope-frontend-dummy: @1751 ns (+1667) [good]: []
Frontend /home/tmplt/.cargo/bin/rtic-scope-frontend-dummy: @2501 ns (+750) [good]: [Task { name: "app::hardware", action: Returned }, Task { name: "app::hardware", action: Exited }]
Frontend /home/tmplt/.cargo/bin/rtic-scope-frontend-dummy: app::hardware,84,2501
Frontend /home/tmplt/.cargo/bin/rtic-scope-frontend-dummy:
One would expect timestamps to be the same. On the target, the only difference between the above is the prescaler register: 119 and 29, respectively.
With the current implementation reported timestamps are different when
tpiu_baudchanges.With
tpiu_freq = 120000000andtpiu_baud = 1000000:With same
tpiu_freqandtpiu_baud = 4000000:One would expect timestamps to be the same. On the target, the only difference between the above is the prescaler register:
119and29, respectively.