Skip to content

Commit 897b4b3

Browse files
committed
NRF52840: Skip D0 - D3 pins during FPGA I2C testing
By default D0 - D3 pins are used for the bitbanged SPI com channel between mbed target and the FPGA-test-shield. For some reason if pins were used as GPIOs and then reconfigured to I2C pins the I2C com does not work on NRF52840. Disable testing I2C pins on these pins until the drivers are fixed.
1 parent a389666 commit 897b4b3

File tree

1 file changed

+7
-4
lines changed
  • targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840

1 file changed

+7
-4
lines changed

targets/TARGET_NORDIC/TARGET_NRF5x/TARGET_NRF52/TARGET_MCU_NRF52840/PeripheralPins.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,13 @@ const PinMap PinMap_I2C_testing[] = {
7373
{P0_31, 0, 0},
7474

7575
{P1_0, 0, 0},
76-
{P1_1, 0, 0},
77-
{P1_2, 0, 0},
78-
{P1_3, 0, 0},
79-
{P1_4, 0, 0},
76+
// By default D0 - D3 pins are used for the bitbanged SPI com channel with the FPGA-test-shield.
77+
// For some reason if pins were used as GPIOs and then reconfigured to I2C pins the I2C com does not work.
78+
// Disable testing I2C pins on these pins until the drivers are fixed.
79+
// {P1_1, 0, 0}, // D0
80+
// {P1_2, 0, 0}, // D1
81+
// {P1_3, 0, 0}, // D2
82+
// {P1_4, 0, 0}, // D3
8083
{P1_5, 0, 0},
8184
{P1_6, 0, 0},
8285
{P1_7, 0, 0},

0 commit comments

Comments
 (0)