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

Problems porting application from NRF52DK board to custom board

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?

Parents Reply
  • Hi Simon,

    Thanks for getting back so quickly. No error is returned - it simply freezes and block the whole application.

    No, it isn't one of the examples. It is a custom application we wrote in order to test the IMU and the SD card slot. 

    I just tried loading the example 'spi_pca10040', and I got the log messages '"Transfer completed."', and no exceptions are returned.

    Best,

    Ed 

Children
No Data
Related