- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Kind of new to all this. I want to log two ADC values versus time in the CYBLE -022001-00 device for later read out. I assume there is no way to store in non-volatile memory; is that correct? So what is the best way to store in volatile memory to preserve it through deep sleep modes? How much memory is available and keep alive during deep sleep mode?
Is there any code examples available that show how to log data in a memory array and read it out via a BLE and Android App?
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welcome in the forum, Philip!
Will 16 Kb Sram be enough?
When not, I would recommend to use some FRam connected via I2C.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks !! So all the SRAM is keep alive. What is the easiest way to determine the amount SRAM already in use by the program before adding logging function?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
After building the project you will see what is taken for (static) vars and stack. Best is to allocate the remaining memory to the heap and use malloc() to get chunks of sram for logging data.
Bob