Getting panics when using SparkFun WM8960 board #1585
-
I'm trying to use the Sparkfun WM8960 board as an ADC. I've gotten some of the examples from SparkFun's library working. However, I'm getting panics when trying to use it with Audio Tools. I've tried this using WM8960Stream, and I've also tried using Sparkfun's library to set up the device, and then treating it as a generic i2S input. Both approaches have the same result. Thanks! Current version of my code: `#include "AudioTools.h" AudioInfo info(44100, 2, 32); // Arduino Setup } // Arduino loop - copy data And the serial output: `mtb_wm8960_write 0x1 = 0x192 Core 1 register dump: Backtrace: 0x400df037:0x3ffb1f80 0x400dfca2:0x3ffb1fa0 0x400dfff7:0x3ffb1fe0 0x400d3b04:0x3ffb2010 0x400d4262:0x3ffb2070 0x400d4322:0x3ffb2090 0x400d49ac:0x3ffb20f0 0x400d59cd:0x3ffb21a0 0x400dc03b:0x3ffb2290 ELF file SHA256: ee00f9d59829ca5d` |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
You need to decode the Backtrace! I am not sure cfg.is_master = false; will work. You should also check if the begin() methods returns true (=success) |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for your quick reply! I was using the Arduino IDE version 2, which doesn't allow for any easy way to decode backtraces. I've switched to PlatformIO to help decode the backtrace, but I've found that the panics don't occur when compiling with PlatformIO. Not sure why, but happy to be able to move on to the next problem. |
Beta Was this translation helpful? Give feedback.
-
Here is the link to a decoder that works with version 2: |
Beta Was this translation helpful? Give feedback.
-
I don't know the Sparkfun libary, so I would not know.... |
Beta Was this translation helpful? Give feedback.
You need to decode the Backtrace!
I am not sure cfg.is_master = false; will work.
I suggest you keep the default values which uses the ESP32 as master
You should also check if the begin() methods returns true (=success)