Mike Maurice
Active member
I have studied all of the posts about 4.x and I2C here on the forum. I am seeing similar problems with SPI to those mentioned in posts that data back to the first of this year. The Adafruit 80 library and various init routines from various forks all are about the same, even the I2C versions are very like the SPI. I have tested the Ada beginSPI routine extensively. The init seems to work up to the point where the 80 sends out the two first packet sets. That appears to be all OK.
PRINT Packet
Header: FF FF FF FF Body: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [Continued packet]
Length:32767 Channel:255
The recent tests are missing the second packet header and data, don't know why.
But it here is what came back when it did come back:
Header: 14 01 00 00 Body: 00 01 04 00 00 00 00 80 06 31 2E 30 2E 30 00
02 Length:276 Channel:Command
But, then the send packet command "CHANNEL_COMMAND, 2" fails to get the header which should have the chip ID info.
Packet Empty
Header: 00 00 00 00
BNO080 over SPI not detected. Are you sure you have all 6 connections? Freezing...
SPI Wait
....
I have tested the T4 from 24 to 600mhz, added in short delays in the read packet routine suggested by those working the I2C. The only thing I have not tried is clock stretching. I have all the latest IDE material, installed in the last 2 days.
Paul S indicates that he did some work on the fifo wire routines for T4, is there a possible problem in the SPI with T4? The extensive material in the T3.6>>T4 thread was instructive but has not lead to a solution.
Any suggestions?
PRINT Packet
Header: FF FF FF FF Body: FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF [Continued packet]
Length:32767 Channel:255
The recent tests are missing the second packet header and data, don't know why.
But it here is what came back when it did come back:
Header: 14 01 00 00 Body: 00 01 04 00 00 00 00 80 06 31 2E 30 2E 30 00
02 Length:276 Channel:Command
But, then the send packet command "CHANNEL_COMMAND, 2" fails to get the header which should have the chip ID info.
Packet Empty
Header: 00 00 00 00
BNO080 over SPI not detected. Are you sure you have all 6 connections? Freezing...
SPI Wait
....
I have tested the T4 from 24 to 600mhz, added in short delays in the read packet routine suggested by those working the I2C. The only thing I have not tried is clock stretching. I have all the latest IDE material, installed in the last 2 days.
Paul S indicates that he did some work on the fifo wire routines for T4, is there a possible problem in the SPI with T4? The extensive material in the T3.6>>T4 thread was instructive but has not lead to a solution.
Any suggestions?