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

After addition SPI to softdevice, some unknown error happened. Even the circulation in main function didn't work?

Hi,

I just want to add SPI to my BLE project to read some data from my gyro, but after spi's addition, the code doesn't work normally anymore. I print a log in the cycle of main function, after add spi, the circulation in main function just cycle limited times.

Before adding spi, i've defined a timer and timerout handler existed, but after spi's addition, the code can't enter the " timerout_handler" function, because i found some logs i've defined in " timerout_handler"  didn't print and display.

main function:

timer_handler:

Settings related to spi:

the LOG sequence: it stop print when "i" in increase to 35

If anyone have some opinions ?

best regards,

jerry

Parents Reply
  • Hi, hmolesworth

    I've solved the logs' problem. But it seemed that i've deviated from the point. My purpose was put the acceleration_read function and its logs in the timeout handler, in terms of my function , putting the code in main() loop was inappropriate. 

    Now, problem still exists if i move the code to timeout_handler(). I'm looking for answer to fix it.

    But thanks your answers sincerely.

    Jerry

Children
No Data
Related