This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SPI master error

I've just trying to get SPI working, everything is compiling OK but when initialising the SPI, when the line below is hit, /* Clear waiting interrupts and events */ p_spi_instance->p_nrf_spi->EVENTS_READY = 0;

I end up in here: void app_error_handler(uint32_t error_code, uint32_t line_num, const uint8_t * p_file_name)

The SPI interrupt is set to LOW, and I have commented out all the bluetooth stuff init stuff in my project at this stage so I can debug the SPI without worrying about that.

Parents
  • Ah, I needed to call device_manager_init(); first, which I commented out with the bluetooth stuff. fixed.

    EDIT - no that wasn't it, it seems that ble_stack_init() needs to be called. Is that because it sets up the softdevice?

  • Are you stuck in the error handler or the hardfault handler? these two are different things. If you are stuck in hardfault handler then its probably because of the access of restricted resources. And if you are stuck in error handler then it is due to some check failed by the APP and your app is calling the registered error handler.

Reply
  • Are you stuck in the error handler or the hardfault handler? these two are different things. If you are stuck in hardfault handler then its probably because of the access of restricted resources. And if you are stuck in error handler then it is due to some check failed by the APP and your app is calling the registered error handler.

Children
No Data
Related