Skip to content

Unused chip drivers still take up RAM #625

@brghena

Description

@brghena

I was looking through RAM use on Signpost today, and wanted to mark this down while I was thinking about it. It's not a blocking problem in any way, but seems like undesirable behavior.

On Signpost (the Audio Module specifically) the USB client driver for the SAM4L takes up 288 Bytes of RAM even though it isn't in use and isn't included in the board's main.rs file. The RAM is spent on the USBC struct (allocated as pub static mut here).

My guess as to why it's taking space at all is because it's included in the chip.rs and mod.rs files in order to connect it to the interrupt handlers. This feels generally undesirable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions