Open Stroly04 opened 11 months ago
You can decode your backtrace with the exceptiondecoder. Using float in an ISR is a bad idea. You likely don't need an interrupt here anyhow. Look at Ticker which will run in a FreeRTOS stack.
@Stroly04 can you please decode the backtrace?
@Stroly04 can you please decode the backtrace?
these are the results
You can decode your backtrace with the exceptiondecoder. Using float in an ISR is a bad idea. You likely don't need an interrupt here anyhow. Look at Ticker which will run in a FreeRTOS stack.
I was reading and ticker works in seconds, can it also work for microseconds?
@Stroly04 can you please decode the backtrace?
these are the results
Try putting just the backtrace line in the decoder. You should get one line that shows where in the code it failed.
I'm experimenting on timers and interrupts, I have seen the same result about exception decoders: if the Backtrace contains
|<-CORRUPTED
you don't see any info in the Exception Decoder.
Board
ESP32 DEVKIT V1
Device Description
ESP32 DEVKIT V1
Hardware Configuration
Sin configuración de GPI/0
Version
latest master (checkout manually)
IDE Name
ARDUINO IDE
Operating System
Windows 11
Flash frequency
40Mhz
PSRAM enabled
yes
Upload speed
921600
Description
I am making a control system for a SEIG, for this it is necessary to make the reading of 7 sinusoidal analog signals of 60hz, ideally sampled at about 400us.
For this I am working interruptions. To test the code I am generating sine signals directly with the ESP32 in the void loop, and in the interruption I sample the signal and make the respective calculations.
However, when I visualize the calculations in the serial plotter, I see this error:
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump: PC : 0x4008467c PS : 0x00050031 A0 : 0x800852f2 A1 : 0x3ffbf2ec
A2 : 0x00000008 A3 : 0x00018008 A4 : 0x000637ff A5 : 0x3ffbf2cc
A6 : 0x00000000 A7 : 0x3ffbdbc4 A8 : 0x00000000 A9 : 0x00000000
A10 : 0x000003e8 A11 : 0x80000001 A12 : 0x800811e9 A13 : 0x3ffbf2ac
A14 : 0x3ffc2158 A15 : 0xfffffbff SAR : 0x0000001d EXCCAUSE: 0x0000001c
EXCVADDR: 0x800852fe LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000
Backtrace: 0x40084679:0x3ffbf2ec |<-CORRUPTED
I am new to ESP32 and I don't know how to approach this problem, I appreciate any idea or correction of the code, I attach the code as well:
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide