Reading from SPI Accelerometer and networking out data at 2000hz

meowsqueak
Posts: 151
Joined: Thu Jun 15, 2017 4:54 am
Location: New Zealand

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

Postby meowsqueak » Tue May 21, 2019 9:19 pm

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...
Last edited by meowsqueak on Tue May 21, 2019 9:25 pm, edited 2 times in total.

meowsqueak
Posts: 151
Joined: Thu Jun 15, 2017 4:54 am
Location: New Zealand

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

Postby meowsqueak » Tue May 21, 2019 9:22 pm

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?

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 127 guests