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

SPI initialization for communicating with the sensor

I am using a custom board based on nRF52 (nRF52832-QFAB-R). I am using the ble_hid_mouse app and performing the initialization for SPI in the main routine. But with the SPI initialization code enabled the device stops even advertising whereas with SPI initialization code disabled the device does advertise. I am performing the gpiote initialization for max user 5 using the macro before SPI init. Can you please suggest what may be going wrong here? How to debug?

Thanks

Parents Reply
  • I am still not able to resolve this issue with app_gpiote_user_register() as my custom board is not able to advertise and connect if I keep this app_gpiote_user_register() as enabled. If I comment it out, the custom board is able to advertise and connect everytime. Debugging this I am getting error code 8 for the app_gpiote_user_register() routine. The attached zip also gives the same error code for me.

    Thanks

Children
  • Hi,

    I worked with the attached zip file once again and this project as it is works with error code 0.

    But doing it in exactly same way also in my implementation it does not work. Error code 8 means invalid state i.e, either the pin is in use or the module is not initialized. Considering the attached zip is not doing much and just involve one user.. Pin number seems not to be in use already and module also is getting initialized. Can you please provide some input?

    Thanks

Related