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

send data from SPI using ble_nus_data_send

Once my SPI code worked in the master SPI example, I editted a ble_uart example from the SDK 15.2 to include the SPI data transfer code. But I seem to run into issues with the SPI now, and it doesn't seem to be working in the ble_uart example. 

The data I get on my mobile app (I am using the ble_nus_data_send() function to send my SPI m_rx_buf to the app via ble) is a fixed string of either "0x0C0000FFFF" or "0xFFFFFFFF". 

My project builds and runs okay (my PCB custom device advertises and sends strings to the app).  But when I ran a debug on it it shows that some functions are stopping the program. How do I know what this means and which function is the one giving me issues?

This is important because for my SPI communication to work I need to use pins 6,7,8,9, 10. The debug tells me that before pin 9,10 can be set as GPIO from NFC, the program is getting stuck somewhere. I need to fix it so that it runs every line. 

I am using Embedded Studio as IDE.

Related