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

Spi and Ble not working in conjunction.

I am getting ecg data from max30003 IC which i want to send via BLE to and application. I have the Ble code working on its own and the SPI code to get ecg data working on its own. However when both are combined code compiles fine but the system does not run. I cannot see a Ble service and the SPI pins are not working correctly. I saw few other people have similar issues none of which is resolved, is this a hardware bug?

Parents
  • Have you tried to debug the combined application? If you don't see any advertisements it suggests that one of your APP_ERROR_CHECK(err_code) receives an err_code != 0. Did you try to monitor the log? What does it say? If it says "Fatal error", try to ad DEBUG to your preprocessor defines. Let me know what IDE you use if you are not sure how to add preprocessor defines.

    Best regards,

    Edvin

  • I forgot to clarify that i was using mbed os with sdk 15. I also tried to get PWM working but the mbed implementation seems quite buggy. I am using Kiel IDE, i exported a ble example from mbed for the uvision 5. 

    I think it might be better to work with just nrf sdk. I got pwm, uart and ble hrs with nrf sdk16 examples on my custom nrf52832 board. But i am facing a lot of issues merging the examples. Just endless errors. 

    I tried merging hrs_example with s132 softdevice with the pwm library example 

    - First i compared the difference in the sdk_config for both of the examples, 

    - Then added missing driver and library c files 

    - Then added the missing file paths 

    but it ended up with 26 errors. I looked up each of the issues and some of the solutions available on devzone didn't work.

Reply
  • I forgot to clarify that i was using mbed os with sdk 15. I also tried to get PWM working but the mbed implementation seems quite buggy. I am using Kiel IDE, i exported a ble example from mbed for the uvision 5. 

    I think it might be better to work with just nrf sdk. I got pwm, uart and ble hrs with nrf sdk16 examples on my custom nrf52832 board. But i am facing a lot of issues merging the examples. Just endless errors. 

    I tried merging hrs_example with s132 softdevice with the pwm library example 

    - First i compared the difference in the sdk_config for both of the examples, 

    - Then added missing driver and library c files 

    - Then added the missing file paths 

    but it ended up with 26 errors. I looked up each of the issues and some of the solutions available on devzone didn't work.

Children
Related