Skip to content
Snippets Groups Projects
Commit c4e66165 authored by Ruben Asplund's avatar Ruben Asplund
Browse files

timing_task done

parent a33a71e3
No related branches found
No related tags found
No related merge requests found
...@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment