diff --git a/boards/dk/src/lib.rs b/boards/dk/src/lib.rs index 8475bd8..f95e340 100644 --- a/boards/dk/src/lib.rs +++ b/boards/dk/src/lib.rs @@ -178,9 +178,9 @@ pub fn init() -> Result { // NOTE this must be executed as early as possible or the tool will timeout // NOTE the unsafety of this macro is incorrect; it must be run at most once #[cfg(feature = "beginner")] - rtt_init_print!(BlockIfFull, 4096); + rtt_init_print!(BlockIfFull, 16384); #[cfg(feature = "advanced")] - rtt_init_print!(NoBlockSkip, 4096); + rtt_init_print!(NoBlockSkip, 16384); log::set_logger(&Logger).unwrap(); diff --git a/tools/dk-run/src/main.rs b/tools/dk-run/src/main.rs index 35b1dce..e9a4d62 100644 --- a/tools/dk-run/src/main.rs +++ b/tools/dk-run/src/main.rs @@ -195,7 +195,7 @@ fn notmain() -> Result { let rtt_addr_res = rtt_addr.ok_or_else(|| anyhow!("RTT control block not available"))?; let mut rtt_res: Result = Err(probe_rs_rtt::Error::ControlBlockNotFound); - const NUM_RETRIES: usize = 3; // picked at random, increase if necessary + const NUM_RETRIES: usize = 5; // picked at random, increase if necessary for try_index in 0..=NUM_RETRIES { rtt_res = Rtt::attach_region(core.clone(), &sess, &ScanRegion::Exact(rtt_addr_res));