Page 2 of 2

Re: Reading from SPI Accelerometer and networking out data at 2000hz

Posted: Tue May 21, 2019 9:19 pm
by meowsqueak
meowsqueak wrote:
Tue May 21, 2019 2:07 am
assuming I could read that in a single I2C transaction
Incidentally, I can't - the chain of I2C instructions (using the IDF driver) runs out of heap space somewhere between trying to read 30 and 60 bytes in a single transaction (malloc fails).

EDIT: probably my own stupid fault for using i2c_master_read_byte in a loop instead of a single i2c_master_read...

Re: Reading from SPI Accelerometer and networking out data at 2000hz

Posted: Tue May 21, 2019 9:22 pm
by meowsqueak
Greg Corson wrote:
Tue May 21, 2019 5:17 pm
What I ended up doing ...
Thanks for the summary - very interesting. Some of the breakouts I'm using don't provide easy access to the interrupt pins, but that can be worked around. Does that mean you aren't using the FIFO modes at all?