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

Problem with SPIM0 and Softdevice S140 6.0.0

Hi, i am using SDK15.0.0 with nrf52840 chip. 

I am interfacing a SPI device in the SPIM0. The SPIM module looks working fine without a softdevice.

But when i integrate with the softdevice , and tried to initialize the SPIM0 , it results me success initialization but i cannot give any ble commands through nrfConnect after SPIM0 initialisation

I tired the same by initializing with different SPIM instance like 1, 2, 3 and that works.

I am using LFCLK throughout the code

Thanks

Prakash

Parents
  • Hi,

    Can you describe in detail what happens when you try SPIM0? Do you get hardfaults or asserts for example? Have you debugged your code?

    Do you mind sharing your code?

  • I have 4 SPI slave devices connected to 4 SPIM instances. The Softdevice has been enabled. I attempt to enable a device through SPIM0. This is enable by my BLE commands. The commands enables my SPIM0 device and eventually turns on. The problem is, from that point, the softdevice is not receiving any of my other commands.

    I carried two tests:

    1. Change the SPIM0 to other instances like 1,2,3.!!. Then, the softdevice is able to receive my other commands.

    2. Keeping in SPIM0, not enable the device . Then, the softdevice is able to receive my other commands.

    So, I guess, that some issue with SPIM0 with softddevices. Can you suggest me an example for this. 

    I am using SDK15.0.0 and softdevice s140 6.0.0

    Thanks

    Prakash

Reply
  • I have 4 SPI slave devices connected to 4 SPIM instances. The Softdevice has been enabled. I attempt to enable a device through SPIM0. This is enable by my BLE commands. The commands enables my SPIM0 device and eventually turns on. The problem is, from that point, the softdevice is not receiving any of my other commands.

    I carried two tests:

    1. Change the SPIM0 to other instances like 1,2,3.!!. Then, the softdevice is able to receive my other commands.

    2. Keeping in SPIM0, not enable the device . Then, the softdevice is able to receive my other commands.

    So, I guess, that some issue with SPIM0 with softddevices. Can you suggest me an example for this. 

    I am using SDK15.0.0 and softdevice s140 6.0.0

    Thanks

    Prakash

Children
No Data
Related