SpaceTeam / STS1_COBC_SW

Software for the communication and onboard computer (COBC) of SpaceTeamSat1 (STS1)
MIT License
7 stars 2 forks source link

Compute CRC-32 checksum in HW with DMA #245

Closed danielschloms closed 4 months ago

danielschloms commented 5 months ago

Description

Both regular hardware CRC, and CRC with DMA are implemented here. For the DMA version, DMA 2 stream 1 is proposed, as only DMA 2 is capable of memory-to-memory transfer as required in the CRC with DMA manual. DmaCrc32() also contains provisional code to convert a byte array into a word array.

Fixes #177

codecov-commenter commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (5960fa1) 87.35% compared to head (f6a32a9) 87.35%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #245 +/- ## ======================================= Coverage 87.35% 87.35% ======================================= Files 18 18 Lines 514 514 ======================================= Hits 449 449 Misses 65 65 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

PatrickKa commented 4 months ago

I ran the HW tests on the FlatSat and everything worked, so we can finally merge this PR.