Event Log Embedded
Posted: Sun Aug 28, 2022 9:11 am
Hi all,
I'd like to keep an internal logfile for debug events that I trigger on different parts of the program. The log would be kept in RAM so it can be retrieved at any time later either through serial or via the LCD. I think 100 lines of 40 characters each would be enough ~ so about 4KBytes allocated to this purpose.
What would be the most efficient way of doing this?
I was thinking using the circular buffer component and throw in the text in there. Then it would cycle without trouble. But how big can the Circular Buffer be actually, are there any limitations or issues? Would 4096 bytes cause any trouble?
Thanks for your thoughts.
Regards,
R
I'd like to keep an internal logfile for debug events that I trigger on different parts of the program. The log would be kept in RAM so it can be retrieved at any time later either through serial or via the LCD. I think 100 lines of 40 characters each would be enough ~ so about 4KBytes allocated to this purpose.
What would be the most efficient way of doing this?
I was thinking using the circular buffer component and throw in the text in there. Then it would cycle without trouble. But how big can the Circular Buffer be actually, are there any limitations or issues? Would 4096 bytes cause any trouble?
Thanks for your thoughts.
Regards,
R