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

SDK 15 software crash during SPI session.

Hi

After migration from SDK 14.0.0 to 15.0.0 our FW crashes during SPI session

We use EasyDMA , so we use SPIM driver directly without wrapper  nrf_drv_spi

The crash occurs in spim_xfer  function, immediately after spim_int_enable function calling.

We found some weird workaround. The problem disappears if we add delay in spim_xfer  function, immediately after  nrf_spim_task_trigger(p_spim, NRF_SPIM_TASK_START);

It looks like voodoo, so I would like to know what's going on and what's a write way to manage the problem appropriately.

Regards

Parents Reply Children
  • Hi,

    I tried to play around with S140 v6.1.0 and the SPIM, but I wasn't able to recreate you problem with this little to go on. If you don't think your problem is related to the original issue in this thread, can you please open a new thread and make summary of what you experience and what you have tried? Can you also try to do a DEBUG build as user "arturo182" suggests in your github link (and as I was trying to suggest with my own link earlier)? A lot of the code in the Nordic universe uses the Error module which resets your MCU on asserts unless you explicitly tell it otherwise. 

Related