Hi Friends/Experts
I am designing a feature which periodically saves the log information in SPI external flash 1MB which is interfaced with microcontroller which has 1MB flash and 256K RAM. Each log have information like - time in UTC, one sensor number, user ID, sensor value before and after, units of sensor and CRC of each entry of log.
Though this MCU has 256k ram but actually RAM available for our application is 196K. Remaining RAM is occupied by the secure bootloader and secure partition manager.
The external flash is also partitioned for other storage purpose and for storing this logs we have allocated 8K from 1MB. So total 340 logs are stored in external flash with 24 bytes of log size. Daily 4 logs may be written into the external flash so that around 80 days of the information can be saved into external flash.
These 340 logs are stored based on the date & time which is saved in UTC format.
Once logs are stored in external flash, user wants to read the logs based on the date and time selected from the utility. Now due to limitation of internal RAM I cant read complete 8K of logs (340) from external flash and save temporarily in MCU internal RAM and process the user request.
Is there any other way or logic which I can process the user request to read the log from external flash for his interested date and time.
with regards,
Praveen Palaparthi
I am designing a feature which periodically saves the log information in SPI external flash 1MB which is interfaced with microcontroller which has 1MB flash and 256K RAM. Each log have information like - time in UTC, one sensor number, user ID, sensor value before and after, units of sensor and CRC of each entry of log.
Though this MCU has 256k ram but actually RAM available for our application is 196K. Remaining RAM is occupied by the secure bootloader and secure partition manager.
The external flash is also partitioned for other storage purpose and for storing this logs we have allocated 8K from 1MB. So total 340 logs are stored in external flash with 24 bytes of log size. Daily 4 logs may be written into the external flash so that around 80 days of the information can be saved into external flash.
These 340 logs are stored based on the date & time which is saved in UTC format.
Once logs are stored in external flash, user wants to read the logs based on the date and time selected from the utility. Now due to limitation of internal RAM I cant read complete 8K of logs (340) from external flash and save temporarily in MCU internal RAM and process the user request.
Is there any other way or logic which I can process the user request to read the log from external flash for his interested date and time.
with regards,
Praveen Palaparthi