From 66fdec7abe649cb7d7203af526035e2a64a55776 Mon Sep 17 00:00:00 2001 From: Til Blechschmidt Date: Wed, 23 Feb 2022 23:27:12 +0100 Subject: [PATCH] Add defmt log outputs for SPIM memcpy --- embassy-nrf/src/spim.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/embassy-nrf/src/spim.rs b/embassy-nrf/src/spim.rs index fedd4e48..5895558e 100644 --- a/embassy-nrf/src/spim.rs +++ b/embassy-nrf/src/spim.rs @@ -272,6 +272,7 @@ impl<'d, T: Instance> Spim<'d, T> { match self.blocking_inner_from_ram(rx, tx) { Ok(_) => Ok(()), Err(Error::DMABufferNotInDataMemory) => { + trace!("Copying SPIM tx buffer into RAM for DMA"); let tx_copied = tx.clone(); self.blocking_inner_from_ram(rx, tx_copied) } @@ -302,6 +303,7 @@ impl<'d, T: Instance> Spim<'d, T> { match self.async_inner_from_ram(rx, tx).await { Ok(_) => Ok(()), Err(Error::DMABufferNotInDataMemory) => { + trace!("Copying SPIM tx buffer into RAM for DMA"); let tx_copied = tx.clone(); self.async_inner_from_ram(rx, tx_copied).await }