This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SPI transfer is not working successfully

Hello,

I am using SDK 15.2.0, nrf52840, s140.

We are using SPI for an analog Front End initialization. SPI initialization works successfully done. But when we read or write to the registers of the IC  using SPI transfer functions, the transfer is not done successfully.

I have connected the SPI clock pin to the RESET pin of BMD 340 (P0.18) in my custom board. Whether this can cause an issue? I am able to program each pin(MOSI, MISO, CLOCK, CHIPSELECT checked by setting the pin using nrf_gpio_pin_set) .

Regards,

Shilpa

Parents Reply
  • Hai,

    Why not just use any other "normal" GPIO pin - and avoid all doubt?

    Actually when we design our custom board, we assigned this pin to the SPI clock without bothering the pin functionality. This was actually a mistake from our part.

    Do we have any solution to this?

    Can we make any other changes to make this solve?

    can we do anything with CONFIG_GPIO_AS_PINRESET .

    I read that disabling CONFIG_GPIO_AS_PINRESET could works, but not sure.

    If so, how to disable CONFIG_GPIO_AS_PINRESET.

    Regards,

    Shilpa.

Children
Related