Description
Thank @kittaakos . I've already read the guide, and could do it well with xtensa core. But with C6, RISC-V, it reports
Could not recognize stack trace/backtrace
Core 0 register dump: MEPC : 0x42006c3a RA : 0x420016ac SP : 0x4081b9a0 GP : 0x4080fed4 TP : 0x4081bae0 T0 : 0x40022494 T1 : 0x4080916c T2 : 0x00000000 S0/FP : 0x40812000 S1 : 0x40815000 A0 : 0x00000000 A1 : 0x00000000 A2 : 0x00000000 A3 : 0x00000001 A4 : 0x00000000 A5 : 0x00000000 A6 : 0x600b1400 A7 : 0x00000000 S2 : 0x50003fec S3 : 0x40818b58 S4 : 0x40815000 S5 : 0x00000010 S6 : 0x00000000 S7 : 0x00000000 S8 : 0x00000000 S9 : 0x00000000 S10 : 0x00000000 S11 : 0x00000000 T3 : 0x00000014 T4 : 0x40815000 T5 : 0x40815000 T6 : 0x00000000 MSTATUS : 0x00001881 MTVEC : 0x40800001 MCAUSE : 0x00000005 MTVAL : 0x00000008 MHARTID : 0x00000000 Stack memory: 4081b9a0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 4081b9c0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 4081b9e0: 0xffffffff 0x00000010 0xffffffff 0x00000000 0x00010000 0x00000000 0xffffffff 0x4080f788 4081ba00: 0x00000001 0x00000010 0xffffffff 0xffffffff 0x00000000 0x4080f788 0x00000000 0x4200ec1c 4081ba20: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x00000000 0x00000011 0x00000010 4081ba40: 0xffffffff 0xffffffff 0x00000000 0x00000000 0x4080f788 0x00000000 0x00000001 0x4200ef98 4081ba60: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0xba7c61b8 4081ba80: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 4081baa0: 0x00000000 0x00000000 0x00000000 0x4200fb90 0x00000000 0x00000000 0x00000000 0x00000000 4081bac0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 4081bae0: 0xa5a5a5a5 0xa5a5a5a5 0xbaad5678 0x0000016c 0xabba1234 0x00000160 0x4081b7b0 0x00000000 4081bb00: 0x40811f84 0x40811f84 0x4081baf8 0x40811f7c 0x00000018 0x4081c448 0x4081c448 0x4081baf8 4081bb20: 0x00000000 0x00000001 0x40819ae8 0x706f6f6c 0x6b736154 0x00000000 0x4081bae0 0x00000005 4081bb40: 0x00000000 0x00000001 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000571 4081bb60: 0x00000000 0x40815824 0x4081588c 0x408158f4 0x00000000 0x00000000 0x00000001 0x00000000 4081bb80: 0x00000000 0x00000000 0x4201977a 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 4081bba0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 4081bbc0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 4081bbe0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 4081bc00: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 4081bc20: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 4081bc40: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0xbaad5678 0x00000068 4081bc60: 0xabba1234 0x0000005c 0x00000000 0x4081bc68 0x00000000 0x00000000 0x00000000 0x4081bc80 4081bc80: 0xffffffff 0x4081bc80 0x4081bc80 0x00000000 0x4081bc94 0xffffffff 0x4081bc94 0x4081bc94 4081bca0: 0x00000001 0x00000001 0x00000000 0x0000ffff 0x00000000 0x00000000 0x00000001 0x00000000 4081bcc0: 0x00000000 0xbaad5678 0x00000088 0xabba1234 0x0000007c 0x00000000 0x00000014 0x4081c488 4081bce0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x4081bd60 0x00000000 0x00000101 4081bd00: 0x00000000 0x00000000 0x0000000a 0x4081c52c 0x00000000 0x00000000 0x00000000 0x00000000 4081bd20: 0x00000000 0x00000000 0x00000000 0x00000000 0x4081bf70 0x4081c0dc 0x00000000 0x4081c2d8 4081bd40: 0x4081c26c 0x4081c41c 0x4081c3b0 0x4081c344 0xbaad5678 0x0000020c 0xabba1234 0x00000200 4081bd60: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 4081bd80: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 Could not recognize stack trace/backtrace Paste exception to decode...
Originally posted by @bhcuong2008 in #6
Please share the ELF file by attaching it as a zip (or any other allowed extension) if you can. Enable as much logging as possible (#10 (comment)), and share the details. Please also copy-paste the entire content of the decoder terminal. If it's shareable info, I would like to see it with sketch path, FQBN, etc.
The more you can share about your environment, the more likely I will be able to fix the problem. If only the monitor output is available, I can check if the parser part of the code is correct, but I won't be able to debug the gdb part 😕 Thanks!