You are here

Best way to Log, Store, and Read Out Sensor Data PROC BLE | Cypress Semiconductor

Best way to Log, Store, and Read Out Sensor Data PROC BLE

Summary: 3 Replies, Latest post by Bob Marlowe on 28 Oct 2016 06:24 AM PDT
Verified Answers: 0
Last post
Log in to post new comments.
Philip Becker's picture
User
2 posts

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?

user_1377889's picture
User
9583 posts

Welcome in the forum, Philip!

Will 16 Kb Sram be enough?

When not, I would recommend to use some FRam connected via I2C.

 

Bob

Philip Becker's picture
User
2 posts

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?  

user_1377889's picture
User
9583 posts

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

Log in to post new comments.