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

SPIM3 instance is not working at 8MHz also

Hi all,

I have customized application which is ported to both Nordic SDK 14.2 and Nordic SDk 15.0. In the app, we use SPI instance to read / write data from the sensor. When I have tested with SPI0/SP1/SPI2 instance at 8MHz , the application works fine with both Nordic SDK 14.2 and Nordic SDK 15.0.

But when I configured SPIM3 instance at 8MHz, the application loops in idle task only. Other tasks stops running.

When I configured SPIM3 instance at 16MHz, SPI CLK results in 16MHz for basic SPI read SDK example

But when I probed SPI CLK of customized application it results either in 16MHz / 625KHz.

Can you please help to resolve the issue?

Thanks in Advance!!

Regards,

Deepa

Parents
  • Hi,

    SPIM 3 was not functional on Engineering revision A so please make sure you are on rev. B,C/1. Also, driver support was first added in SDK 15,  see nrfx_spim.c.   

    Regards,

    Vidar

  • Hi Vidar,

    I'm using nrF52840 RevB custom board and SDK 15.0.

    As stated I have a customized application which reads or writes data to slave device using SPI Instance.
    By enabling the NRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED, customized application works fine when I configure SPIM3 at 8MHz.
    But customized application is not working when I configure SPIM3 at 16MMHz.

    I have observed that SPIM3 clock varies as either 16MHz or 625KHz when SPIM3 is configured at 16MHz with my customized application
    But I have also observed that SPIM3 clock is always 16MHz when SPIM3 is configured at 16MHz with my customized application which reads only device id of slave device in while(1) loop.

    Can you please help to resolve the issue?

    Thanks in Advance!!

    Regards,
    Deepa

Reply
  • Hi Vidar,

    I'm using nrF52840 RevB custom board and SDK 15.0.

    As stated I have a customized application which reads or writes data to slave device using SPI Instance.
    By enabling the NRFX_SPIM3_NRF52840_ANOMALY_198_WORKAROUND_ENABLED, customized application works fine when I configure SPIM3 at 8MHz.
    But customized application is not working when I configure SPIM3 at 16MMHz.

    I have observed that SPIM3 clock varies as either 16MHz or 625KHz when SPIM3 is configured at 16MHz with my customized application
    But I have also observed that SPIM3 clock is always 16MHz when SPIM3 is configured at 16MHz with my customized application which reads only device id of slave device in while(1) loop.

    Can you please help to resolve the issue?

    Thanks in Advance!!

    Regards,
    Deepa

Children
Related