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

SPI when advertising not working

Hi 

I am using SPI to talk to an LIS2DH with an NRF51822. I have merged the SPI Master example with the ble_app_rscs example and as soon as the ble advertising begins, my SPI interrupts no longer work and I end up in the hard fault. I have changed the IRQ priority to high but it still does not work. 

I am using SDK8.0.0 - I know it's old, it's the only SDK version I could get to work with the free version of Keil. 

Parents Reply
  • let me re-phrase that: 

    the processor doesn't hang - I can still see me ble advertising packets and connect to it etc. as soon as I call spi_master_init or spi_send_recv after I have called advertising_init, nothing happens. I have scoped the SPI lines and nothing happens on them. 

    If I put breakpoints on spi_master_init or spi_send_recv, I end up in the hardfault if I try step over those functions. 

    seriously confused here

Children
Related