Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rtic_f4xx_nucleo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ruben Asplund
rtic_f4xx_nucleo
Commits
c4e66165
Commit
c4e66165
authored
4 years ago
by
Ruben Asplund
Browse files
Options
Downloads
Patches
Plain Diff
timing_task done
parent
a33a71e3
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/timing_task.rs
+10
-4
10 additions, 4 deletions
examples/timing_task.rs
with
10 additions
and
4 deletions
examples/timing_task.rs
+
10
−
4
View file @
c4e66165
...
@@ -81,11 +81,16 @@ const APP: () = {
...
@@ -81,11 +81,16 @@ const APP: () = {
//
//
// (gdb) x 0xe0001004
// (gdb) x 0xe0001004
//
//
// [
Your answer here
]
// [
0x0000000b = 11
]
//
//
// (gdb) disassemble
// (gdb) disassemble
//
//
// [Your answer here]
// [Your answer here]
// Dump of assembler code for function timing_task::APP::EXTI0:
// => 0x08000232 <+0>: bkpt 0x0000
// 0x08000234 <+2>: movs r0, #0
// 0x08000236 <+4>: msr BASEPRI, r0
// 0x0800023a <+8>: bx lr
//
//
// You should see that we hit the breakpoint in `exti0`, and
// You should see that we hit the breakpoint in `exti0`, and
// that the code complies to the objdump EXTI disassembly.
// that the code complies to the objdump EXTI disassembly.
...
@@ -95,11 +100,12 @@ const APP: () = {
...
@@ -95,11 +100,12 @@ const APP: () = {
//
//
// What was the software latency observed to enter the task?
// What was the software latency observed to enter the task?
//
//
// [
Your answer here
]
// [
11 - 0 = 11 clock cycles
]
//
//
// Does RTIC infer any overhead for launching the task?
// Does RTIC infer any overhead for launching the task?
//
//
// [Your answer here]
// [It does not have software overhead,
// because in the link to the document above, figure 6 shows that there are no software overhead in cortex-M.]
//
//
// Now we can continue to measure the round trip time.
// Now we can continue to measure the round trip time.
//
//
...
@@ -109,7 +115,7 @@ const APP: () = {
...
@@ -109,7 +115,7 @@ const APP: () = {
//
//
// (gdb) x 0xe0001004
// (gdb) x 0xe0001004
//
//
// [
Your answer here
]
// [
0x00000017 = 23
]
//
//
// Looking at the EXTI0 (exti0) code, we see two additional
// Looking at the EXTI0 (exti0) code, we see two additional
// instructions used to restore the BASEPRI register.
// instructions used to restore the BASEPRI register.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment