Repository navigation
Conversation
Adds the flight computer's eMMC (U9, KIOXIA THGBMTG5D1LBAIL, 4 GB) flight log, following the Flight_computer.drawio state machine. At this stage recording starts at ARMED, not LAUNCHED, because launch detection does not exist yet. Self-test and Idle never read or write the card. - flight_state: the diagram's transition table and which states record. A stand-in for the real state machine (#162). - emmc_log: append-only raw-block log, no filesystem. Every 512 B block carries an epoch, its own position, its session and a CRC32, so a power cut can only lose the chunk in flight. The end is found at mount by binary search. Sensor tasks never wait on the card: records go into 16 KB RAM chunks; one writer task does all I/O; when full, records are dropped, counted and reported. - emmc_card: CID/EXT_CSD checks against the datasheet. - emmc_port: the seam, so the log runs on a laptop against a RAM disk. - emmc_stm32: SDMMC1 + IDMA adapter. NOT YET COMPILED (the build comes with #165); its DMA buffers need a RAM_D1 linker section first. - tests/emmc: 3 host suites, new CI job stm32-emmc-host. Five deliberate breaks of the code were each caught by the matching test. - EMMC-ARCHITECTURE.md: design, datasheet facts, integration status. Datasheet: https://datasheet.lcsc.com/datasheet/pdf/ea386c834ed06c7e4629df6606f52741.pdf Refs #137
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the flight computer's eMMC (U9, KIOXIA THGBMTG5D1LBAIL, 4 GB) flight log, following the Flight_computer.drawio state machine. At this stage recording starts at ARMED, not LAUNCHED, because launch detection does not exist yet. Self-test and Idle never read or write the card.
Datasheet: https://datasheet.lcsc.com/datasheet/pdf/ea386c834ed06c7e4629df6606f52741.pdf Refs #137