Hey!
Sorry for not providing any source-code, as I have no clue where in my thousands line of code that might happen. With Serial.print debugging I was not able to locate at least an area of it happening...
I am having weird random crashes in my project. To find where that (and after being unable to find something by debugging my code) I added the -g to the build and ran a addr2line on that CrashReport:
addr2line responded with:
sm_utils.c in line 44 is:
That assignment line that obviously would crash.
So does anyone might be able to give me hint what might be wrong here?
Did I ran out of memory and the fallback of the smalloc is to call this method to let the app crash?
Edit: build-summary, if it is from interest:
Sorry for not providing any source-code, as I have no clue where in my thousands line of code that might happen. With Serial.print debugging I was not able to locate at least an area of it happening...
I am having weird random crashes in my project. To find where that (and after being unable to find something by debugging my code) I added the -g to the build and ran a addr2line on that CrashReport:
Code:
CrashReport:
A problem occurred at (system time) 12:9:10
Code was executing from address 0x23A0E
CFSR: 82
(DACCVIOL) Data Access Violation
(MMARVALID) Accessed Address: 0x0 (nullptr)
Check code at 0x23A0E - very likely a bug!
Run "addr2line -e mysketch.ino.elf 0x23A0E" for filename & line number.
Temperature inside the chip was 48.59 °C
Startup CPU clock speed is 600MHz
Reboot was caused by auto reboot after fault or bad interrupt detected
Breadcrumb #2 was 692347259 (0x2944617B)
Breadcrumb #4 was 2547643817 (0x97D9F5A9)
addr2line responded with:
Code:
arm-none-eabi-addr2line -e firmware.elf 0x23A0E
~/.platformio/packages/framework-arduinoteensy/cores/teensy4/sm_util.c:44
sm_utils.c in line 44 is:
Code:
static void smalloc_do_crash(struct smalloc_pool *spool, const void *p)
{
char *c = NULL;
*c = 'X';
}
So does anyone might be able to give me hint what might be wrong here?
Did I ran out of memory and the fallback of the smalloc is to call this method to let the app crash?
Edit: build-summary, if it is from interest:
Code:
teensy_size: Memory Usage on Teensy 4.1:
teensy_size: FLASH: code:219684, data:45348, headers:9012 free for files:7852420
teensy_size: RAM1: variables:55072, code:214576, padding:14800 free for local variables:239840
teensy_size: RAM2: variables:18400 free for malloc/new:505888
teensy_size: EXTRAM: variables:32448
Last edited: