I'm trying the example in the SDK v0.9.1: examples\spi_master
When I load the project, build it, and debug it, all that happens is that it goes into a failed state where the error handler just does nothing:
void app_error_handler(uint32_t error_code, uint32_t line_num, const uint8_t * p_file_name)
{
UNUSED_VARIABLE(bsp_indication_set(BSP_INDICATE_FATAL_ERROR));
for (;;)
{
// No implementation needed.
}
}
When I place a break point in this error handler, it always breaks, as if the program will always produce an error condition, no matter what. From my diagnostics it appears that a call to the nrf_delay_ms() function that may cause it, but can't be certain.
Why is this happening? One would suspect that example code provided would not produce a persistent error like this.
I am using SPI0 configured as (in nrf_drv_config.h):
#if (SPI0_ENABLED == 1)
#define SPI0_USE_EASY_DMA 0
#define SPI0_CONFIG_SCK_PIN 4
#define SPI0_CONFIG_MOSI_PIN 29
#define SPI0_CONFIG_MISO_PIN 28
#define SPI0_CONFIG_IRQ_PRIORITY APP_IRQ_PRIORITY_LOW
Does anyone else have this behavior with this example?