Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: RE: Problem to use SPI protocol

$
0
0
Hello, can you please check the value of errSPI when the program is trapped? It's possibly because peripheral is not yet ready to post another byte (you'll see value of SSP_ERR_HW_LOCKED if that's the case and if errSPI is ssp_err_t type). You should either use SPI Framework to control the flow or if you're not using RTOS, you can await an interrupt to send another byte (which is essentially what the framework does). I also spotted that the second write call points to &src_buffer as data source but you only defined src and not src_buffer. I hope this helps.

Viewing all articles
Browse latest Browse all 59170

Trending Articles