I am using LVGL for simple Eink display UI, and trying to implement a simple if condition to check if the passed string argument is null as below:
If I only have btn1 OR btn2 checked, then there will be no error. However, if I checked both btn1 and btn2 at the same time for their nullity, then error handler will pop at program counter 0x0001C64B.
I have no clue where I can start to debug from, and my assumption is invalid PC if it branched/jumped to an invalid location due to corrupted stack/memory. But if it is really from corrupted stack/memory, then how can it be triggered from a simple if condition?
So my questions are:
1. What are the recommended approaches to debug this?
2. If this is extra code/data overwrites memory regions, how can I solve this if I want to keep developing on this project?
This is the current memory allocation for this project, and it is fed up quite to its limit:
Any advice is greatly appreciated!
Thanks,
Kevin