-
Notifications
You must be signed in to change notification settings - Fork 107
Closed
Description
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:
SparkFun_u-blox_GNSS_Arduino_Library/src/SparkFun_u-blox_GNSS_Arduino_Library.cpp
Line 3084 in 7f38fcd
ubxFileBuffer = new uint8_t[fileBufferSize]; // Allocate RAM for the buffer |
Cheers,
Adam
Metadata
Metadata
Assignees
Labels
No labels