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_send_recv in an ISR

I am calling the spi_master_send_recv in a ISR from a GPIO using app_gpiote.c It causes a hardfault on APP_ERROR_CHECK(sd_nvic_DisableIRQ(p_spi_instance->irq_type)); Otherswise spi_master_send_recv works well when using the function from e.g. main(). Any hint...

Parents
  • I am setting the gpio interrupt priority to APP_IRQ_PRIORITY_HIGH and the SPI priority to APP_IRQ_PRIORITY_LOW, when this occurs. Setting the priority for both to APP_IRQ_PRIORITY_LOW results in not getting any SPI interrupt when the spi_master_send_recv() is called in the ISR.

Reply
  • I am setting the gpio interrupt priority to APP_IRQ_PRIORITY_HIGH and the SPI priority to APP_IRQ_PRIORITY_LOW, when this occurs. Setting the priority for both to APP_IRQ_PRIORITY_LOW results in not getting any SPI interrupt when the spi_master_send_recv() is called in the ISR.

Children
No Data
Related