Skip to content

Commit

Permalink
ITM broken on Nucleo H743/H753 boards (#346)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcantrill committed Dec 26, 2021
1 parent 97c131a commit 3b9d333
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions drv/stm32h7-spi-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -921,9 +921,20 @@ cfg_if::cfg_if! {
SpiMuxOption {
outputs: &[
(
//
// It may seem reasonable -- especially given the
// groupings and silkscreen on CN7 -- to use PB3
// for SPI3_SCK. However, this pin is TRACESWO on
// AF0: if we configure this pin for SPI, ITM
// will no longer work (and with a failure mode
// that can be difficult to debug). We instead
// opt to use PC10 for SPI3_SCK, which is also
// easily accessible: it's pin 1 on CN11 and pin
// 6 on CN8.
//
PinSet {
port: gpio_api::Port::B,
pin_mask: 1 << 3,
port: gpio_api::Port::C,
pin_mask: 1 << 10,
},
gpio_api::Alternate::AF6,
),
Expand Down

0 comments on commit 3b9d333

Please sign in to comment.