Skip to content

Commit

Permalink
samples: nrfx_prs: Fix pin assignment on nRF5340 DK
Browse files Browse the repository at this point in the history
Pins P0.06 and P0.07 are shorted on nRF5340 DKs prepared for on-target
tests because that is required for UART tests. That causes background
SPIM transfers in this sample to fail because SPIM is not able to drive
its SCK line configured as P0.06. Rearrange then the pins used in this
sample, so that SCK is not on a pin involved in a GPIO loopback.

Signed-off-by: Andrzej Głąbek <[email protected]>
  • Loading branch information
anangl authored and MaureenHelm committed May 24, 2024
1 parent ab50b37 commit 9c874f0
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
&pinctrl {
spi1_default_alt: spi1_default_alt {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 6)>,
<NRF_PSEL(SPIM_MOSI, 0, 7)>;
psels = <NRF_PSEL(SPIM_SCK, 0, 25)>,
<NRF_PSEL(SPIM_MOSI, 0, 6)>;
};
group2 {
psels = <NRF_PSEL(SPIM_MISO, 0, 25)>;
psels = <NRF_PSEL(SPIM_MISO, 0, 7)>;
bias-pull-down;
};
};

spi1_sleep_alt: spi1_sleep_alt {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 6)>,
<NRF_PSEL(SPIM_MOSI, 0, 7)>,
<NRF_PSEL(SPIM_MISO, 0, 25)>;
psels = <NRF_PSEL(SPIM_SCK, 0, 25)>,
<NRF_PSEL(SPIM_MOSI, 0, 6)>,
<NRF_PSEL(SPIM_MISO, 0, 7)>;
low-power-enable;
};
};
Expand Down

0 comments on commit 9c874f0

Please sign in to comment.