Skip to content

Decrease CCMRAM usage #1676

Description

@stefanthorstenson

The default config build for CF2 uses 99 % of the CCMRAM, with currently 648 of 64888 bytes free. Reduce CCMRAM usage to have some headroom.

  • Decide on an acceptable CCMRAM usage
  • Analyze how to decrease CCMRAM usage

Note

cf2bl uses 89 %, see below. This seems to be due to that CF2 needs to handle two sets of sensors; one for CF2.0 (MPU9250 gyro/accel + LPS25H baro), and one for CF2.1 (BMI088 + BMP3xx), decided at runtime.

cf2:    CCM   |   64888/65536   (99%),     648 free | ccmbss: 64888, ccmdata: 0
cf21bl: CCM   |   58232/65536   (89%),    7304 free | ccmbss: 58232, ccmdata: 0

Suggested solutions

  • Look into how CCMRAM can be shared between the two sets of sensors
  • Move data from CCMRAM to normal RAM (currently 38376 bytes free)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Triage neededIssues to be discussed in the next triage meeting.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions