Skip to content
Snippets Groups Projects
Commit 4a1f1a26 authored by August Svensson's avatar August Svensson
Browse files

bare10_1

parent 13c081eb
No related branches found
No related tags found
No related merge requests found
......@@ -83,9 +83,9 @@ const APP: () = {
fn trace_data(byte: u8) {
let stim = &mut resources.ITM.stim[0];
iprintln!(stim, "data {}", byte);
// for _ in 0..10000 {
// asm::nop();
// }
for _ in 0..10000 {
asm::nop();
}
}
#[task(priority = 1, resources = [ITM])]
......@@ -145,15 +145,17 @@ const APP: () = {
//
// Did you loose any data (was the data correctly echoed)?
//
// ** your answer here **
// ** No, the data was correctly echoed. **
//
// Was the data correctly traced over the ITM?
//
// ** your answer here **
// ** No, only ab was traced. c and d generated RingBufferOverflow. **
//
// Why did you loose trace information?
//
// ** your asnwer here **
// ** The interrupt has higher priority so it takes over from the running
// trace_data task, but that task has not finished its nop-loop started
// in a previous interrupt. Therefore the block!() evaluates to an error. **
//
// Commit your answers (bare10_1)
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment