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

reset on SPI transfer

Hi,

I'm trying to transfer data received from BLE to SPI. When the handler of my service in BLE is achieved I transfer the data I received to SPI. I know the max that I can send through SPI is 255, but I only want to send 90. I tried to send them, but when it receives the data it resets the nrf, this only happens when I try to send more than one packet (20b). And it gets to the BLE handler but not the SPI handler.

Sometimes it let's me send more than one packet if it is right after I connect both BLE devices but if I try the second time I cannot send and it resets.

I also tried to send via SPI without receiving from the BLE, and there I could send more than 20b.

Should I try to store the packets from the BLE and then send them all together? I wanted to be that every time I receive something from the BLE the SPI would be triggered, but it seems this problem is related to the interrupts of the BLE and SPI.

I reviewed some questions to avoid duplication; apologies if this was already asked and/or answered.

Thanks, Jorge. (I use nrf51, SDK11 and SD130 v2)

Parents Reply Children
No Data
Related