Edzelf / ESP32-Radio

Internet radio based on ESP32, VS1053 and a TFT screen.
GNU General Public License v3.0
965 stars 227 forks source link

Startup not working #201

Open Ing-Med opened 5 years ago

Ing-Med commented 5 years ago

Hi guys,

i tried getting this to run, but i just wouldn't work and crash/reboot. First i tried the whole setup with the mp3 board, but as i had to look for errors (they were different most of the time), i came back to the most basic setup: only flashing the ROM with WiFi info and nothing else.

First i flashed the init program. The only thing i changed was my WiFi: preferences.putString ( "wifi_00", "Home-N/pwd" ) ; (it says somewhere, that the AP ssid cannot be shorter than 8 letters, is this true? i have never had a problem connecting to that Wifi with ESP)

Next, i installed the actual ROM, and it would only run in a loop saying the VS board was not found. Nothing is connected of course, i can't even access the web interface though with it rebooting all the time.

On a side note, i had to manually install the library, as its not in the folder. I installed through the boards manager this one: https://github.com/knolleary/pubsubclient/releases/tag/v2.7

Thank you in advance !

`D: Scan completed D: Number of available networks: 38 D: 1 - Home-N Signal: -44 dBm, Encryption WPA_WPA2_PSK, Acceptable D: 2 - UPC0166108 Signal: -61 dBm, Encryption WPA_WPA2_PSK, D: 3 - UPC Wi-Free Signal: -61 dBm, Encryption ????, D: 4 - 3Tube_2.4Ghz_064C Signal: -73 dBm, Encryption WPA_WPA2_PSK, .... ... ... D: 37 - TMOBILE-59260 Signal: -92 dBm, Encryption WPA_WPA2_PSK, D: 38 - UPC5934443 Signal: -93 dBm, Encryption WPA_WPA2_PSK, D: End of list D: Command: clk_dst with parameter 1 D: Command: clk_offset with parameter 1 D: Command: clk_server with parameter pool.ntp.org D: Command: gpio_00 with parameter uppreset = 1 D: Command: gpio_12 with parameter upvolume = 2 D: Command: gpio_13 with parameter downvolume = 2 D: Command: mqttbroker with parameter none D: Command: mqttpasswd with parameter *** D: Command: mqttport with parameter 1883 D: Command: mqtttpreset with parameter none D: Command: mqttuser with parameter none D: Command: preset with parameter 6 D: Command: preset_00 with parameter 109.206.96.34:8100 D: Command: preset_01 with parameter airspectrum.cdnstream1.com:8114/1648_128 D: Command: preset_02 with parameter us2.internet-radio.com:8050 D: Command: preset_03 with parameter airspectrum.cdnstream1.com:8000/1261_192 D: Command: preset_04 with parameter airspectrum.cdnstream1.com:8008/1604_128 D: Command: preset_05 with parameter us1.internet-radio.com:8105 D: Command: preset_06 with parameter icecast.omroep.nl:80/radio1-bb-mp3 D: Command: preset_07 with parameter 205.164.62.15:10032 D: Command: preset_08 with parameter skonto.ls.lv:8002/mp3 D: Command: preset_09 with parameter 94.23.66.155:8106 D: Command: preset_10 with parameter ihr/IHR_IEDM D: Command: preset_11 with parameter ihr/IHR_TRAN D: Command: toneha with parameter 0 D: Command: tonehf with parameter 0 D: Command: tonela with parameter 0 D: Command: tonelf with parameter 0 D: Command: volume with parameter 72 D: Slow SPI, Testing VS1053 read/write registers... D: VS1053 not properly installed! D: Connect to WiFi Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled. Core 1 register dump: PC : 0x400e1cd7 PS : 0x00060630 A0 : 0x800d2c06 A1 : 0x3ffb1e50 A2 : 0x0000001c A3 : 0x3f401317 A4 : 0x3ffca3a8 A5 : 0x3ffb1e8c A6 : 0x00000000 A7 : 0x00000000 A8 : 0x800e1cd7 A9 : 0x3ffb1e10 A10 : 0x0000001b A11 : 0x0000001c A12 : 0x3f401317 A13 : 0x3ffb1ed0 A14 : 0x3ffb1e50 A15 : 0x00000008 SAR : 0x00000008 EXCCAUSE: 0x0000001c EXCVADDR: 0x00000000 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xfffffffb

Backtrace: 0x400e1cd7:0x3ffb1e50 0x400d2c03:0x3ffb1ef0 0x400d3ac9:0x3ffb1f10 0x400da06c:0x3ffb1f30 0x4013bffb:0x3ffb1fa0

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:808 load:0x40078000,len:6084 load:0x40080000,len:6696 entry 0x400802e4

D: Starting ESP32-radio running on CPU 1 at 240 MHz. Version Thu, 04 Oct 2018 07:22:32 GMT. Free memory 238600 D: Display type is NEXTION D: Partition nvs found, 20480 bytes D: Read 31 keys from NVS D: pin_ir set to -1 D: pin_enc_clk set to -1 D: pin_enc_dt set to -1 D: pin_enc_sw set to -1 D: pin_tft_cs set to -1 D: pin_tft_dc set to -1 D: pin_tft_scl set to -1 D: pin_tft_sda set to -1 D: pin_tft_bl set to -1 D: pin_tft_blx set to -1 D: pin_sd_cs set to -1 D: pin_vs_cs set to -1 D: pin_vs_dcs set to -1 D: pin_vs_dreq set to -1 D: pin_shutdown set to -1 D: pin_shutdownx set to -1 D: pin_spi_sck set to 18 D: pin_spi_miso set to 19 D: pin_spi_mosi set to 23 D: GPIO0 is HIGH D: GPIO2 is LOW, probably no PULL-UP D: GPIO4 is HIGH D: GPIO5 is HIGH D: GPIO12 is HIGH D: GPIO13 is HIGH D: GPIO14 is HIGH D: GPIO15 is HIGH D: GPIO16 is HIGH D: GPIO17 is HIGH D: GPIO18 is LOW, probably no PULL-UP D: GPIO19 is HIGH D: GPIO21 is HIGH D: GPIO22 is HIGH D: GPIO23 is HIGH D: GPIO25 is HIGH D: GPIO26 is HIGH D: GPIO27 is HIGH D: GPIO32 is HIGH D: GPIO33 is HIGH D: GPIO34 is LOW, probably no PULL-UP D: GPIO35 is LOW, probably no PULL-UP D: GPIO39 is LOW, probably no PULL-UP D: gpio_00 will execute uppreset = 1 D: gpio_12 will execute upvolume = 2 D: gpio_13 will execute downvolume = 2 D: Create list with acceptable WiFi networks D: Added Home-N to list of networks D: Added ADSL-11 to list of networks D: End adding networks D: Scan Networks `

Ing-Med commented 5 years ago

I have tried to do some troubleshooting myself, but i can't really get behind it. Unfortunately i can't use the debugger tool provided by the ESP guys. i only found out that my error seems to be related to some pointer pointing at a null address (EXCVADDR: 0x00000000 )

  1. I tried to find out where the program stops. The vanilla code seems to stop somewhere within the Wifi connection, but i am not sure of that. The program definitively does not go through until the end of the Setup function. it does not arrive line 3663 ( xTaskCreatePinnedToCore ).

  2. When commenting out initialising all the hardware, the program follows through the setup function and goes until xTaskCreatePinnedToCore . Then it crashes. I commented out line 3576, 3579, 3582, 3583, (assinging networkfound to false if i rememeber correctly). It seems to crash somewhere after the setup function.

  3. All of the above + my own manual Wifi connection, networkfound set to true. Wifi successfully connects to my AP, the setup function seems to follow through and then crashes.

Also i have tried to use different board packages. Latest RC for the ESP32 and the latest stable. Has not helped.

MakeySQ commented 5 years ago

Hi,

Is the LCD connected? My case

Solution

  1. all tft* function comment //tftlog(p)
  2. change lcd define //define NEXION <-comment define DUMMYTFT <- uncomment : I not try this.
Ing-Med commented 5 years ago

I haven't used a LCD. I basically don't get an errormessage since the board straight up crashes.

Ing-Med commented 5 years ago

Sorry for my late reply. Changing the definition of the display has worked! Thanks!