Was going to ask this as an issue, but...
Suppose your App Lab sketch crashes... Currently not hard to imagine as most of mine crash on the current release. Currently the only way to know you had a crash is if you by chance have a USB To Serial adapter hooked up to the UNO Q on pins 0 and 1 and have a Serial app running at 115200.
And for example if I run my modified version of the Weather App that shows the temperature and how much rainfall. On 0.53 it crashes:
*** Booting Zephyr OS build v4.2.0-38-g994b835f5936 ***
Invalid sketch header
[00:00:00.220,000] <err> os: ***** BUS FAULT *****
[00:00:00.225,000] <err> os: Precise data bus error
[00:00:00.231,000] <err> os: BFAR Address: 0x4b6e21fc
[00:00:00.237,000] <err> os: r0/a1: 0x00011b24 r1/a2: 0x4b6e21f0 r2/a3: 0x00000003
[00:00:00.245,000] <err> os: r3/a4: 0x646f6874 r12/ip: 0x00000007 r14/lr: 0x080130dd
[00:00:00.254,000] <err> os: xpsr: 0x29002c00
[00:00:00.259,000] <err> os: s[ 0]: 0x0000200c s[ 1]: 0x200326d8 s[ 2]: 0x00000001 s[ 3]: 0x20029420
[00:00:00.270,000] <err> os: s[ 4]: 0x00000002 s[ 5]: 0x08013155 s[ 6]: 0x00000002 s[ 7]: 0x200326d8
[00:00:00.280,000] <err> os: s[ 8]: 0x20008bd8 s[ 9]: 0x20029420 s[10]: 0x00000001 s[11]: 0x20029418
[00:00:00.291,000] <err> os: s[12]: 0xffffffff s[13]: 0x08013477 s[14]: 0x00000000 s[15]: 0x00000001
[00:00:00.301,000] <err> os: fpscr: 0x20008bd8
[00:00:00.306,000] <err> os: Faulting instruction address (r15/pc): 0x08013012
[00:00:00.314,000] <err> os: >>> ZEPHYR FATAL ERROR 25: Unknown error on CPU 0
[00:00:00.322,000] <err> os: Current thread: 0x20000558 (main)
[00:00:00.328,000] <err> os: Halting system
How can I find out what these addresses correspond to?
Currently the map file is more or less useless, as described in the issue
How to decode a fault address? ยท Issue #52 ยท arduino/ArduinoCore-zephyr
It was mentioned within that issue, that within the Arduino IDE, if you build
with link set to Static, then you can get the addresses...
Is there any such way with builds within applab to do static Builds?
Or within arduino-app-cli?
If so how... And if such options are available is it also possible to set other options, such as see all build warnings?
Also side question. The last Pulled in change in ArduinoCore-zephyr marked for a 0.53.1 release(or marker), mentioned that it fixes random issues for apps > 64k and wondered if 128k was sufficient?
What does this mean? Sufficient for what?
Thanks