Page 1 of 1

Crash

Posted: Sat Oct 04, 2025 2:02 pm
by bruleherman
Hi,
I don't understand why it crash, even in emulator.
Even in setup() loop. I use arduino IDE, it's not support debug mode.
I always code into C/C++, and I don't see anything wrong.
Few bit help please. Code is working when I rewrite for Linux.
Regards,

Re: Crash

Posted: Sun Oct 05, 2025 3:08 am
by Sprite
Normally, I'd ask for you to get the backtrace and decode that, in this case that probably would have lead you to the issue, but here it's obvious enough for me to spot it immediately:

Code: Select all

#define BUFFERSIZE 256
int16_t buffer[BUFFERSIZE];//one value each ms
[...]
memset(buffer,0,1024*2);
Could be that there are more bugs later on, I didn't look that closely.