Hi,
Code:
#include <Arduino.h>
int dynamic = 0;
void setup() {
Serial.begin(115200);
Serial.println("Hello World");
}
void loop() {
delay(5000);
float error = 1/dynamic;
Serial.println(error);
}
.ini:
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
build_type = debug
monitor_speed = 115200
monitor_filters = esp32_exception_decoder
Serial monitor:
Guru Meditation Error: Core 1 panic'ed (IntegerDivideByZero). Exception was unhandled.
Core 1 register dump:
PC : 0x400d13ee PS : 0x00060830 A0 : 0x800d2a38 A1 : 0x3ffb2270
A2 : 0x3ffc1c64 A3 : 0x00000000 A4 : 0x00000014 A5 : 0x00000004
A6 : 0x3ffb8188 A7 : 0x80000001 A8 : 0x00000000 A9 : 0x3ffb2250
A10 : 0x00000001 A11 : 0x0000000b A12 : 0x00000001 A13 : 0x00000003
A14 : 0x00000001 A15 : 0x0000e100 SAR : 0x00000003 EXCCAUSE: 0x00000006
EXCVADDR: 0x00000000 LBEG : 0x400863dd LEND : 0x400863ed LCOUNT : 0xffffffff
Backtrace: 0x400d13eb:0x3ffb2270 0x400d2a35:0x3ffb2290
ELF file SHA256: f2af8ed78c178c11
I rebuilt, reran, what could be the issue?