d-ronin / openlager

STM32F4 based logging dongle for HIGH RATE logging
99 stars 25 forks source link

SPI support is needed #29

Open mlyle opened 8 years ago

mlyle commented 8 years ago

Probably should wait after the other performance bugs once we've wrung all the perf we can get out of async serial.

LitterBugs commented 7 years ago

Curious if you have done any testing on SPI support? Interested to use it for controllers/firmwares that don't support async serial > 250,000 baud.

mlyle commented 7 years ago

There's no implementation, no.

Do any firmwares support streaming logging data out SPI? (As opposed to talking to NOR flash chips, which is really something else)

LitterBugs commented 7 years ago

*Flight supports SPIflash which is NOR chips. So not that I know of.

mlyle commented 7 years ago

Yah, I think it would be difficult to pretend to be a NOR flash chip, and if we did it we'd have a lot of the performance limitations that come with NOR flash. The SPI pinning is there to allow if we ever need to go faster than 2.47mbps, but relatively few controllers have an exposed SPI and 2.47mbps seems to be plenty.

LitterBugs commented 7 years ago

Unfortunately, *flight limits serial to 250,000. Will have to see if they are willing to add support for faster rates.

EDIT: Looks like someone beat me to it. https://github.com/betaflight/betaflight/pull/2994 EDIT2: and I was also getting SPI/I2C confused. The controller I wanted to use it on does NOT have SPI exposed.

LitterBugs commented 3 years ago

Actually have a need to capture SPI data in the 24-32Mhz range. Curious if this hardware would be capable of that speed if the firmware was modded?