Merging spi and ble_app_att_mtu_throughput

Hi, 

I'm struggling to use ble_app_att_mtu_throughput and spi. Some help? 

When I merge the two codes the main code (ble_app_att_mtu_throughput) doesn't work.

Thanks for your help

Parents Reply
  • Hi,

    If the SPI code works when you include it with the BLE code, then you should see the clock signal on the SCLK when it starts the transaction.

    If you don't see the clock signal, then it usually means either:

    1. The program have asserted or is stuck somewhere in your code before it reach the function that starts the SPI transaction.
    2. You are not measuring on the correct SCLK pin.

    Option 1 can be checked by using breakpoints and the debugger.

    Option 2, can be checked by checking the PSEL.SCLK register after the module have been initialized. You can read out this register by using memrd in nRF Command Line Tools, or using the debugger in Segger and watching the register content in debug view.

    I think you need to use a more time debugging your application,

    regards

    Jared 

Children
Related