Strange behavior in nrf52840

Hi,

I am using nrf52840 and SDK-16.0. Initially I was using SPI1 and SPI2. now along with this I am using SPI3.

we have added new feature which consumes 316*9*26 bytes . Currently available memory is 56kb. we have seen strange behavior i.e. we have defined a global variable to know the status of the sensor driver. If we use this variable sensor does not produce the interrupts. Is this because of memory issue?. Can you guide which part we have focus to resolve the issue? 

I am completely blocked. Please guide us what has to be checked and help us to solve this issue!

Hoping to hear from you soon,

Thanks,

Shreya

  • Hi Shreya

    We recommend NRF Connect SDK (NCS) latest version for new designs / projects.

    I hope you are referring to SPI0, SPI1 and SPI2, rather than SPI1, SPI2 and SPI3.

    Is the problem due to usage of third instance of SPI, or is it because your program now requires more memory?

    You may try to isolate the issue by first just including third SPI instance and see if you get any error,

    and after that then increase / consume more data; I would also suggest to try with less data first and see if it works and the error is coming by increasing data.

Related