Other Parts Discussed in Thread: CC3100
Hello,
Again me :) trying port CC3100 to Cortex M0.
I have problem with function _SlDrvRxHdrRead . When i register callbacks and enable the device. It goes to Spi_Write function and writes data to CC3100 as well as here. I had same problem with Bruno.
So host sends 4 bytes which is (0x65 - 0x87 - 0x78 - 0x56) and gets 8 bytes then it is trying to read from cc3100 again (second time) with length = 0 than it fails. My programme goes to crash. Because it waits for a data which its length is 0.
As you can see below for loop starts with ShiftIdx = 0 and it tries to read from spi with ShiftIdx as length. The code you see below is not original driver code. I changed code according to this post(this is a specific shifting problem about _u32 variables for cortex m0 processors).
What is your suggestions ?