Hi,
I've converted code from Teensy to ESP32 and added an ADS1115 to this. The original code is here: Loftur E. Jónasson - TF3LJ / VE2AO - 15 - Power and SWR Meter, rev II See: [
PSWR_T_103.zip]
While I've managed to use the usual AI tools to assist me, I'm getting the error below:
Guru Meditation Error: Core 1 panic'ed (IntegerDivideByZero). Exception was unhandled.
Core 1 register dump:
PC : 0x400d27bb PS : 0x00060c30 A0 : 0x800d2940 A1 : 0x3ffc85a0
A2 : 0x00000000 A3 : 0x3ffc1d14 A4 : 0x00000000 A5 : 0x00000000
A6 : 0x00000001 A7 : 0x00000000 A8 : 0x0000001e A9 : 0x3ffc8590
A10 : 0x00000000 A11 : 0x00000000 A12 : 0xfffffc02 A13 : 0x000003fe
A14 : 0x7ff00000 A15 : 0x40590000 SAR : 0x00000014 EXCCAUSE: 0x00000006
EXCVADDR: 0x00000000 LBEG : 0x400d26c2 LEND : 0x400d26c9 LCOUNT : 0x00000000
Backtrace: 0x400d27b8:0x3ffc85a0 0x400d293d:0x3ffc85c0 0x400d3c9b:0x3ffc85e0 0x400d83bd:0x3ffc8600
ELF file SHA256: e78c50ac355a98d4
Rebooting...
I have following libraries:
#include "PdBm.h"
#include <Wire.h>
#include "PSWRtft.h"
#include <Metro.h>
#include <esp_timer.h>
// Create a periodic timer with a period of one second.
// Create a periodic timer with a period of one second.
esp_timer_handle_t timer;
esp_timer_create_args_t timer_args = {
.callback = powerSampler,
.arg = nullptr,
.dispatch_method = ESP_TIMER_TASK,
.name = "my_timer",
.skip_unhandled_events = true,
Thanks
/StarKnight