Crash

bruleherman
Posts: 4
Joined: Sat Sep 06, 2025 1:01 pm

Crash

Postby bruleherman » Sat Oct 04, 2025 2:02 pm

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,
Attachments
electric_line_oscilloscope.zip
(2.04 KiB) Downloaded 21 times

Sprite
Espressif staff
Espressif staff
Posts: 10599
Joined: Thu Nov 26, 2015 4:08 am

Re: Crash

Postby Sprite » Sun Oct 05, 2025 3:08 am

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.

Who is online

Users browsing this forum: Bytespider, ChatGPT-User and 3 guests