I am working on a datalogger based on the Mbed. And I seem to be running into memory issues causing my Mbed to malfunction silently.
My program has grown quite a bit in size as I am using the following parts.
FAT-filesystem for a big persistent ringbuffer.
Memory based ringbuffer acting as cache for the FAT filesystem. (6000 bytes)
Netservices to connect to the internet and offload data.
Custom I2C communication polling a range of sensors.
I have had to increase the memory of the Netservices library to get speeds above 3K/second. By increasing it from 2000 to 6000 bytes i achieve a throughput arund 30KB/second.
Any idea on what I can do to release more memory for my application to run more smooth?
Kind regards
Jesper
I am working on a datalogger based on the Mbed. And I seem to be running into memory issues causing my Mbed to malfunction silently.
My program has grown quite a bit in size as I am using the following parts.
FAT-filesystem for a big persistent ringbuffer. Memory based ringbuffer acting as cache for the FAT filesystem. (6000 bytes) Netservices to connect to the internet and offload data. Custom I2C communication polling a range of sensors.
I have had to increase the memory of the Netservices library to get speeds above 3K/second. By increasing it from 2000 to 6000 bytes i achieve a throughput arund 30KB/second.
Any idea on what I can do to release more memory for my application to run more smooth?
Kind regards
Jesper