From 3d162c1e87a1516e21fa6fcb1e073c7737ff64d4 Mon Sep 17 00:00:00 2001 From: "henthe-5@student.ltu.se" <henthe-5@student.ltu.se> Date: Wed, 6 Mar 2019 10:44:13 +0100 Subject: [PATCH] bare7_4 --- examples/bare7.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/examples/bare7.rs b/examples/bare7.rs index 51227de..b3d1409 100644 --- a/examples/bare7.rs +++ b/examples/bare7.rs @@ -50,7 +50,7 @@ fn main() -> ! { .unwrap(); let gpioc = p.GPIOC.split(); - gpioc.pc9.into_alternate_af0().set_speed(hal::gpio::Speed::Low); + gpioc.pc9.into_alternate_af0().set_speed(hal::gpio::Speed::VeryHigh); // MCO_2 alternate function AF0, STM32F401xD STM32F401xE data sheet // table 9 // AF0, gpioc reset value = AF0 @@ -203,11 +203,16 @@ fn main() -> ! { // // What did you receive, and what was the output of the ITM trace. // -// ** your answer here ** +// ** Received abcd, seding a longer string caused overflow +// ITM trace +// [2019-03-06T09:27:25.066Z] Ok 97 +// [2019-03-06T09:27:25.066Z] Ok 98 +// [2019-03-06T09:27:25.067Z] Ok 99 +// [2019-03-06T09:27:25.067Z] Ok 100 ** // // Explain why the buffer overflows. // -// ** your answer here ** +// ** We are reading a byte, printing and then writing. This will take some time and we will receive new bytes before the serial is flushed. ** // // commit your answers (bare7_4) // -- GitLab