Code hangs when using SPI3

we are using SPI3 in nrf52840 with nrf SDK 16.0

we are using this as below

1. SPI3 init -polling mode  

2. SPI3 unint

3. SPI3 init - DMA mode

4. SPI3 unint 

5. SPI3 init -polling mode

6. SPI3 unit

 

The code gets hanged when we write through SPI3 after SPI3 is intialized in polling mode (STEP 5) in above steps 

Can anyone help us in identifying the reason for the hang? 

Thanks in advance,

 

 

Madhukeshwar P

Parents Reply
  • Hi,

    when "the code hangs" device will not advertise. and it starts advertising only after reset. we don't have screenshots. but we have debugged that where the issue is occurring. As mentioned in the statement. it is occurring when we try to communicate using SPI after step 5. but we are not getting why.



    this issue is not consistent. but it occurs within 12 hours. 

Children
No Data
Related