If you take a 1K variable to a local variable, the AP will drop.
Static variables do not fall off.
I think it's a stack size issue, but how do I specify the stack size in prj.conf?
Also, where can I find the current stack size and stack start address?