So I am running into what I think is a band width limit of streaming raw CAN data to an SD card.
I am running TD 1.54 release and IDE 1.8.15. SDFat 2.1.0 (latest release)
I am using micro SD card on the teensy 4.1. For micromod teensy I am using the Adafruit SDIO micro SD with a "shield" I designed for carry the 3 can TX's and the SDIO micro socket and a 5V PS for the field.
I did some of the bench marks and the SD card I showing consistent 20ish kbyte/sec write times from both set ups which seems to be be "good"?
The issue is occasionally the write time seems to get long and stalls everything so is there a simple way to monitor the buffer to see of it is taking too long to write?
My thought process instead of stalling everything I can just skip some captured frames until the SD catches up and going back to unthrottled logging until we get back up again.
The CAN is coming in using and interrupt but I am trying to handle everything thing else in the loop.
Any thoughts?
Thanks
Bruce
I am running TD 1.54 release and IDE 1.8.15. SDFat 2.1.0 (latest release)
I am using micro SD card on the teensy 4.1. For micromod teensy I am using the Adafruit SDIO micro SD with a "shield" I designed for carry the 3 can TX's and the SDIO micro socket and a 5V PS for the field.
I did some of the bench marks and the SD card I showing consistent 20ish kbyte/sec write times from both set ups which seems to be be "good"?
The issue is occasionally the write time seems to get long and stalls everything so is there a simple way to monitor the buffer to see of it is taking too long to write?
My thought process instead of stalling everything I can just skip some captured frames until the SD catches up and going back to unthrottled logging until we get back up again.
The CAN is coming in using and interrupt but I am trying to handle everything thing else in the loop.
Any thoughts?
Thanks
Bruce