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
Edvin Åkerfeldt
rtic_f4xx_nucleo
Commits
07b23269
Commit
07b23269
authored
4 years ago
by
Edvin Åkerfeldt
Browse files
Options
Downloads
Patches
Plain Diff
timing_task, all questions done
parent
03f80b1a
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.cargo/config
+2
-2
2 additions, 2 deletions
.cargo/config
examples/timing_task.rs
+23
-0
23 additions, 0 deletions
examples/timing_task.rs
with
25 additions
and
2 deletions
.cargo/config
+
2
−
2
View file @
07b23269
...
...
@@ -5,10 +5,10 @@
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
# uncomment ONE of these three option to make `cargo run` start a GDB session
# which option to pick depends on your system
#
runner = "arm-none-eabi-gdb -q -x openocd.gdb"
runner = "arm-none-eabi-gdb -q -x openocd.gdb"
# runner = "gdb-multiarch -q -x openocd.gdb"
# runner = "gdb -q -x openocd.gdb"
runner = "probe-run --chip STM32F411RETx"
#
runner = "probe-run --chip STM32F411RETx"
rustflags = [
# This is needed if your flash or ram addresses are not aligned to 0x10000 in memory.x
...
...
This diff is collapsed.
Click to expand it.
examples/timing_task.rs
+
23
−
0
View file @
07b23269
...
...
@@ -82,10 +82,23 @@ const APP: () = {
// (gdb) x 0xe0001004
//
// [Your answer here]
/*
(gdb) x/d 0xe0001004
0xe0001004: 11
*/
//
// (gdb) disassemble
//
// [Your answer here]
/*
(gdb) disassemble
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
End of assembler dump.
*/
//
// You should see that we hit the breakpoint in `exti0`, and
// that the code complies to the objdump EXTI disassembly.
...
...
@@ -96,10 +109,16 @@ const APP: () = {
// What was the software latency observed to enter the task?
//
// [Your answer here]
/*
None, only hardware latenvy to enter the task.
*/
//
// Does RTIC infer any overhead for launching the task?
//
// [Your answer here]
/*
No, the MCU jumps strait to the first useful intstruction in the exception.
*/
//
// Now we can continue to measure the round trip time.
//
...
...
@@ -110,6 +129,10 @@ const APP: () = {
// (gdb) x 0xe0001004
//
// [Your answer here]
/*
(gdb) x/d 0xe0001004
0xe0001004: 23
*/
//
// Looking at the EXTI0 (exti0) code, we see two additional
// 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