-
Notifications
You must be signed in to change notification settings - Fork 106
Fix fileBuffer RAM allocation #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for finding this Adam! |
Thanks, Paul! Will try it out this morning. Can you clarify what you mean by "End will stop all automatic message processing and free (nearly) all used RAM."? Is there still some RAM that will be lost after each Cheers, |
Hi Adam, |
Thanks, Paul! I've been letting the code run all morning and am currently up to 40 sleep/wake cycles with a 16 KB buffer and no issues! Cheers, |
Jolly good! |
Uh oh!
There was an error while loading. Please reload this page.
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
Cheers,
Adam
The text was updated successfully, but these errors were encountered: