Thanks for the reply.  I wanted to try something before getting back to you…  I 
tried the same project on the nRF52DK and used SystemView to take a look.  It 
appears that I am sending requests when the device is not ready.  So I will 
look at fixing that and see if it helps.



Here is the SPIS0 register dump for the nRF52 when it hit the same state:



0x40003000:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003010:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003020:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003030:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003040:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003050:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003060:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003070:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003080:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003090:     0x00000000      0x00000000      0x00000000      0x00000000

0x400030a0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400030b0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400030c0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400030d0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400030e0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400030f0:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003100:     0x00000001      0x00000000      0x00000001      0x00000001

0x40003110:     0x00000001      0x00000001      0x00000000      0x00000000   
<<< EVENTS_ENDRX == 1

0x40003120:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003130:     0x00000000      0x00000000      0x00000000      0x00000001

0x40003140:     0x00000000      0x00000000      0x00000000      0x00000001

0x40003150:     0x00000001      0x00000000      0x00000000      0x00000000

0x40003160:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003170:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003180:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003190:     0x00000000      0x00000000      0x00000000      0x00000000

0x400031a0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400031b0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400031c0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400031d0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400031e0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400031f0:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003200:     0x00000004      0x00000000      0x00000000      0x00000000

0x40003210:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003220:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003230:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003240:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003250:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003260:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003270:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003280:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003290:     0x00000000      0x00000000      0x00000000      0x00000000

0x400032a0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400032b0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400032c0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400032d0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400032e0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400032f0:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003300:     0x00000402      0x00000402      0x00000402      0x00000000

0x40003310:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003320:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003330:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003340:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003350:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003360:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003370:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003380:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003390:     0x00000000      0x00000000      0x00000000      0x00000000

0x400033a0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400033b0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400033c0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400033d0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400033e0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400033f0:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003400:     0x00000001      0x00000000      0x00000000      0x00000000    
<<< SEMSTAT == 1

0x40003410:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003420:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003430:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003440:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003450:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003460:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003470:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003480:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003490:     0x00000000      0x00000000      0x00000000      0x00000000

0x400034a0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400034b0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400034c0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400034d0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400034e0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400034f0:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003500:     0x00000002      0x00000000      0x00000017      0x00000019

0x40003510:     0x00000018      0x00000016      0x00000000      0x000000aa

0x40003520:     0x00000000      0x04000000      0x00000000      0x00000000

0x40003530:     0x00000000      0x200005c0      0x00000015      0x00000015

0x40003540:     0x00000000      0x200004d0      0x00000015      0x00000015

0x40003550:     0x00000000      0x00000000      0x00000002      0x000000aa

0x40003560:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003570:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003580:     0x00000000      0x00000000      0x00000000      0x00000000

0x40003590:     0x00000000      0x00000001      0x00000000      0x00000000

0x400035a0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400035b0:     0x00000000      0x00000000      0x00000000      0x00000000

0x400035c0:     0x000000aa      0x00000001      0x00000000      0x00000000

0x400035d0:     0x00000000      0x00000000      0x00000000      0x00000000



Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10





________________________________
From: will sanfilippo <[email protected]>
Sent: Monday, October 2, 2017 4:19:12 AM
To: [email protected]
Subject: Re: nRF51 SPI1 Slave failing after time

Hello Joe:

I do not have any ideas off the top of my head. Can you copy/paste a register 
dump of the SPI peripheral? That might help. Making sure that all interrupts 
are still enabled would be a good thing as well.

Thenks
> On Oct 1, 2017, at 5:18 PM, Joe Broxson <[email protected]> wrote:
>
> Hey all,
>
> I’ve build an app based on Apps/SpiTest that implements SPI slave.  
> Essentially it buffers data from BLE, indicates data ready to a K24 using a 
> GPIO, which causes the K24 to read the data. This is built with the default 
> nrf51dk BSP – the only changes are to allow for a single 200K image instead 
> of 2 100K images.
>
> This works for the most part, but after some time, the nRF will stop 
> processing SPIS requests.  It doesn’t receive an interrupt and thus the SPIS 
> task just sits.
>
> Looking at the SPIS registers, I see that EVENTS_ENDRX and SEMSTAT are set. 
> This is the only indicator that something is awry.
>
> Anyone have any thoughts on what might be going on here?
>
> Thanks!
>
> Sent from Mail for Windows 10
>

Reply via email to