Faulty ESP32 board ?

phil49
Posts: 3
Joined: Fri Feb 12, 2021 3:28 pm

Faulty ESP32 board ?

Postby phil49 » Fri Feb 12, 2021 3:41 pm

Hi A newbie experimenting with my first esp32. I uploaded code for an internet radio and it was working fine. Then I repowered in later and nothing happened.this is the text I get on the serial monitor
Backtrace: 0x400014fd:0x3ffb1ea0 0x400d580e:0x3ffb1eb0 0x400d14c6:0x3ffb1ed0 0x400d5a87:0x3ffb1fb0 0x4008954d:0x3ffb1fd0

Rebooting...
ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5816
entry 0x400806ac
..WiFi connected
IP address:192.168.1.3
Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x400014fd PS : 0x00060430 A0 : 0x800d5811 A1 : 0x3ffb1ea0
A2 : 0x00000050 A3 : 0x0000004c A4 : 0x000000ff A5 : 0x0000ff00
A6 : 0x00ff0000 A7 : 0xff000000 A8 : 0x00000000 A9 : 0x3ffb1e70
A10 : 0x3ffb1f5c A11 : 0x00000000 A12 : 0x00000009 A13 : 0x3ffb1f4a
A14 : 0x00000039 A15 : 0x00000000 SAR : 0x00000010 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000050 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xffffffff

Backtrace: 0x400014fd:0x3ffb1ea0 0x400d580e:0x3ffb1eb0 0x400d14c6:0x3ffb1ed0 0x400d5a87:0x3ffb1fb0 0x4008954d:0x3ffb1fd0

Rebooting...
ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5816
entry 0x400806ac
Is hte board kaput or can I recover it.

Thanks in advance for any help

revolt_randy
Posts: 5
Joined: Sat Feb 06, 2021 5:29 am

Re: Faulty ESP32 board ?

Postby revolt_randy » Sat Feb 13, 2021 5:58 am

The board is not 'kaput', it's working, but the software running on it is causing errors. The 'Backtrace' part of the error message can tell exactly what part of the code is causing the error. Mind if I ask where you got the code you're running?

To verify if the board is working, you can load the classic arduino 'Blink' example to the board and one of the board's leds should flash off and on.

Randy

phil49
Posts: 3
Joined: Fri Feb 12, 2021 3:28 pm

Re: Faulty ESP32 board ?

Postby phil49 » Sat Feb 13, 2021 1:18 pm

Hi Randy
The blink,wifi scan and hello sketch for the vs1053 dac board all run but none of the internet radio sketches that previously ran will run now.I've looked at the backtrace line but can't make head or tail of it.
This is my first venture into coding so using somebody elses code.Is there any way I can flush it and start afresh.
Thanks for your help. The code I was using came from this site.
https://www.elektormagazine.com/labs/es ... rnet-radio

Regards
Phil49

revolt_randy
Posts: 5
Joined: Sat Feb 06, 2021 5:29 am

Re: Faulty ESP32 board ?

Postby revolt_randy » Sun Feb 14, 2021 5:45 am

Ok, well, if you have the blink, wifi scan, and the hello sketch for the DAC board all working, I would say all your hardware is ok. So it's a software problem, which is why I asked where the code came from.

I had the feeling it wasn't your own code, which is why I didn't really explain the Backtrace, as I didn't think you would understand it. I just found out about decoding the Backtrace a week ago myself. See my post on this forum here: https://www.esp32.com/viewtopic.php?f=19&t=19355

In the second post on that thread is a link that will describe how to install tools in the arduino IDE to decode the Backtrace. This will tell you what lines of code were executed before the reboot happens. Since you admit you don't really know coding, this probably won't be much help to you.

To flush it and start afresh, just upload the code to the esp32 again. I bet you've already done that a few times...

I think you should post this at the arduino forums. It's a very busy forum with lots of users and you would probably find help there better than you could here. Nothing wrong with this forum, just that one is more active with more users. Provide all information and make sure you post the code you are using with [ code ] [ \code ] tags.

Hope this helps,
Randy

phil49
Posts: 3
Joined: Fri Feb 12, 2021 3:28 pm

Re: Faulty ESP32 board ?

Postby phil49 » Tue Feb 16, 2021 1:09 pm

Hi Randy

Thanks for your reply I will try both of your suggestions.
Sorry for the late reply but life gets in the way of a hobby.
At 72 it's probably a bit late to study coding but I will persevere a while longer.

Regards
Phil49

Who is online

Users browsing this forum: No registered users and 65 guests