hi, i am new to embedded system.
I am using SPI interface to collect data from the slave(imu) and transmitted it to nrf52 DK,previously,I just used RTT to show the received data, now i try to use uart and ble to build communication between PC and smartphone to show the data in both smartphone and PC. here, i used ble-app-uart example and add spi function into the example. firstly i want to test whether the uart can work properly, so i just use printf() to show the data in tera term, but the received data is all 0. actually i used RTT(not uart) to show the data before, and the received data is correct. Could you help me find the problem.
main1.c