This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nrf52 SPIM no MISO response

Hi,

Im trying to connect MCP25625 via SPI on nrf52. I checked with the scope that CS, MOSI and SCK are correct, but I get no reply on MISO line whatsoever. I perform a very easy operation:

  1. Reset - send 1 byte data
  2. Read register - send 3 bytes.

Any ideas what to check? i have 2 custom boards and they both have the same issue.

image description OSC2 waveform

image description 3-byte command bitbanging SCK and MOSI lines

Parents
  • just a standard config:

    #define NRF_DRV_SPI_DEFAULT_CONFIG(id)                       \
    {                                                            \
        .sck_pin      = CONCAT_3(SPI, id, _CONFIG_SCK_PIN),      \
        .mosi_pin     = CONCAT_3(SPI, id, _CONFIG_MOSI_PIN),     \
        .miso_pin     = CONCAT_3(SPI, id, _CONFIG_MISO_PIN),     \
        .ss_pin       = NRF_DRV_SPI_PIN_NOT_USED,                \
        .irq_priority = CONCAT_3(SPI, id, _CONFIG_IRQ_PRIORITY), \
        .orc          = 0xFF,                                    \
        .frequency    = NRF_DRV_SPI_FREQ_4M,                     \
        .mode         = NRF_DRV_SPI_MODE_0,                      \
        .bit_order    = NRF_DRV_SPI_BIT_ORDER_MSB_FIRST,         \
    }
    

    MISO is using GPIO 11 Tried enabling and disabling EASYDMA, didnt change anything

Reply
  • just a standard config:

    #define NRF_DRV_SPI_DEFAULT_CONFIG(id)                       \
    {                                                            \
        .sck_pin      = CONCAT_3(SPI, id, _CONFIG_SCK_PIN),      \
        .mosi_pin     = CONCAT_3(SPI, id, _CONFIG_MOSI_PIN),     \
        .miso_pin     = CONCAT_3(SPI, id, _CONFIG_MISO_PIN),     \
        .ss_pin       = NRF_DRV_SPI_PIN_NOT_USED,                \
        .irq_priority = CONCAT_3(SPI, id, _CONFIG_IRQ_PRIORITY), \
        .orc          = 0xFF,                                    \
        .frequency    = NRF_DRV_SPI_FREQ_4M,                     \
        .mode         = NRF_DRV_SPI_MODE_0,                      \
        .bit_order    = NRF_DRV_SPI_BIT_ORDER_MSB_FIRST,         \
    }
    

    MISO is using GPIO 11 Tried enabling and disabling EASYDMA, didnt change anything

Children
No Data
Related