Skip to content

[13.0] CRC cleanup. #16174

Open
1 of 1 issue completed
Open

Description

@cederom

Is your feature request related to a problem? Please describe.

  • Current CRC implementation in NuttX in some areas is not compatible with other platforms (i.e. Linux).
  • There various CRC16 and CRC32 algorithms out there, while there is no one common standard.
  • CRC changes impacts various storage, transmission, etc, and may impact self-compatibility.

Describe the solution you'd like

  • We need to provide implementations for other commonly used CRC.
  • We need explicit implementation of various CRC with clearly distinguishable function name or parameters.
  • In order to maintain backward-compatibility any change in defaults may happen in next major release (13.0).
  • Core crc defaults should stay untouched.
  • Where necessary and possible some components crc implementation may change in order to improve compatibility with other platforms.
  • User code may choose what CRC implementation to use, but core components should not allow KConfig like CRC algo selection as this will impact NuttX self-compatibility.

Describe alternatives you've considered

No response

Verification

  • I have verified before submitting the report.

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    Type: Enhancement
    on Apr 10, 2025
  2. added this to the future milestone on Apr 10, 2025
  3. added theissue type on Apr 10, 2025
  4. TimJTi commented on Apr 10, 2025

    @TimJTi
    Contributor
    • Where necessary defaults may change in order to improve compatibility with other platforms.

    I think you may get roasted over this one, based on the mailing list discussion!

    Tangential thought. If there is no standard for these CRCs then is perhaps not the use of them actually non-portable and, therefore, OS-specific? Caveat emptor? So no need for compatibility with Linux or other OS' per se?

    But documentation is key. Maybe even a #warning for the (I gather) less common but time-honoured NuttX choices, warning that they may not be compatible with other OS'?

  5. modified the milestones: future, v13.0.0 on Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type: Enhancement

Type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions