I am trying to port an application that works on the NRF52 DK board to a custom board containing a 52832 QFAA chipset. The MCU is connected via SPI to an IMU BMI160 and a SD card slot. In debug mode, the program downloaded successfully to the custom board through the SWD interface. However, stepping through the code, it hangs on the following line.
int8_t ret = nrf_drv_spi_transfer(&spi_BMI160, m_buf, 1, read_temp, payload_size+1);
I have not defined a custom_board header as I am not changing the pin configuration. I defined custom GPIO pins as the SPI interface, as follows.
#define IS_CS_PIN 23
#define IS_MISO_PIN 24
#define IS_MOSI_PIN 17
#define IS_SCK_PIN 13
May I know what I might have missed during the porting process, generating such an error?