Page 1 of 1

ideas for on-chip log storage?

Posted: Mon Jun 03, 2019 5:50 pm
by mzimmers
Hi all -

I've been asked to look into adding syslog functionality to our product. Part of the requirement is storing the logs on the ESP32 for some period of time (probably 24 hours). Does anyone have an idea on how best to do this? Storage space is probably going to be an issue, so using the NVS library (convenient but inefficient due to the storage of key/value pairs) is probably not the best way to go. Should I consider a separate partition for this? Currently, my flash looks like:

Code: Select all

I (50) boot: ## Label            Usage          Type ST Offset   Length
I (57) boot:  0 nvs              WiFi data        01 02 00009000 00004000
I (65) boot:  1 otadata          OTA data         01 00 0000d000 00002000
I (72) boot:  2 phy_init         RF data          01 01 0000f000 00001000
I (80) boot:  3 factory          factory app      00 00 00010000 00130000
I (87) boot:  4 ota_0            OTA app          00 10 00140000 00130000
I (95) boot:  5 ota_1            OTA app          00 11 00270000 00130000
So space is already tight.

Thanks for any ideas...