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

SPI transfer failure

Hi,

I have a strange issue on my device.

Once in a while, after turning on my device and connect it to the PC via NFC trigger, the device fails during writing to external flash via nrfx_spim_xfer.

The function nrfx_spim_xfer returns NRF_SUCCESS, but after that, the device waits too long (9000 times in a for loop), until SPIM event handler is called.

After that, the device resets itself, maybe due to a fatal error.

The SPI is protected by a mutex in my application.

Is there any option that the NFC is related to that? Maybe it's something with power on process? Any ideas?

Thanks!

Parents Reply Children
Related