Hi Daniel,
thanks for your reply.
The CS and CLK line work as expected. But on the MOSI line there is no data.
Here is how we call the write_byte() function:
for (b = 0 ; b < 0x0f; b++) //Send min 74+ clocks
{ write_byte(0xff);
}
but it stay stuck in the write_byte() in the following line:
while(((LPSPI0->SR & LPSPI_SR_TDF_MASK)>>LPSPI_SR_TDF_SHIFT)==0);
What could be the problem?
Best regards
Sandra