Skip to content

Fix fileBuffer RAM allocation #20

Closed
@adamgarbo

Description

@adamgarbo

Hi @PaulZC,

As discussed earlier, we'll need to fix how the .createFileBuffer() function allocates RAM. At present, if the system makes multiple calls to .begin(), RAM usage will eventually exceed the available memory (e.g. a 16 KB file buffer will consume all 384 KB RAM on the Artemis after 24 sleep/wake cycles). In actuality, this seems to occur at about the 14th sleep/wake cycle, which causes an immediate hard reset of the processor.

Offending line of code:

ubxFileBuffer = new uint8_t[fileBufferSize]; // Allocate RAM for the buffer

Cheers,
Adam

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