From f567d18d98fa0a2079e1814564b5f1a77435504f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl=20=C3=96sterberg?= <carl.vilhelms.osterberg@gmail.com> Date: Fri, 12 Mar 2021 10:45:32 +0100 Subject: [PATCH] bare8_1 --- examples/rtic_bare6.rs | 4 ++-- examples/rtic_bare8.rs | 16 +++++++++++++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/examples/rtic_bare6.rs b/examples/rtic_bare6.rs index d4743ec..c63601a 100644 --- a/examples/rtic_bare6.rs +++ b/examples/rtic_bare6.rs @@ -138,7 +138,7 @@ fn clock_out(rcc: &RCC, gpioc: &GPIOC) { // otyper reset state push/pull, in reset state (don't need to change) // ospeedr 0b11 = very high speed - gpioc.ospeedr.modify(|_, w| w.ospeedr9().low_speed()); + gpioc.ospeedr.modify(|_, w| w.ospeedr9().high_speed()); } // 0. Background reading: @@ -348,7 +348,7 @@ fn clock_out(rcc: &RCC, gpioc: &GPIOC) { // What is the peak to peak reading of the signal (and why did it change)? // // ** your answer here ** -// 5.5V, +// 5.5V, we dont any reviewer please do tell. // // Make a screen dump or photo of the oscilloscope output. // Save the the picture as "bare_6_48mhz_low_speed". diff --git a/examples/rtic_bare8.rs b/examples/rtic_bare8.rs index 241530d..abbdf6d 100644 --- a/examples/rtic_bare8.rs +++ b/examples/rtic_bare8.rs @@ -73,7 +73,7 @@ const APP: () = { loop { match block!(rx.read()) { Ok(byte) => { - rprintln!("Ok {:?}", byte); + rprintln!("Ok {:b}", byte); tx.write(byte).unwrap(); } Err(err) => { @@ -114,30 +114,43 @@ const APP: () = { // What do you receive in `moserial`? // // ** your answer here ** +// a // // What do you receive in the RTT terminal? // // ** your answer here ** +// Ok 97 +// Ok 13 +// Ok 10 // // Try sending: "abcd" as a single sequence, don't send the quotation marks, just abcd. // // What did you receive in `moserial`? // // ** your answer here ** +// ab // // What do you receive in the RTT terminal? // // ** your answer here ** +// Ok 97 +// Ok 98 +// Error Overrun +// Ok 13 +// Ok 10 // // What do you believe to be the problem? // // Hint: Look at the code in `idle` what does it do? // // ** your answer here ** +// Some form of overflow +// // // Experiment a bit, what is the max length sequence you can receive without errors? // // ** your answer here ** +// 3 characters, but not consistently. // // Commit your answers (bare8_1) // @@ -153,6 +166,7 @@ const APP: () = { // 3. Experiment a bit, what is the max length sequence you can receive without errors? // // ** your answer here ** +// // // How did the added tracing/instrumentation affect the behavior? // -- GitLab