schreibfaul1 / ESP32-MiniWebRadio

Internetradio with ESP32, I2S DAC and SPI TFT Display with Touchpad

Home Page:https://www.youtube.com/watch?v=6QbPee2583o

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

00:03:06 connection to NTP failed, trying again

RobinMosedale opened this issue · comments

Dear Wolle,

I've checked
#390

It's cycling reset on NTP fail.

Perhaps I should default to the original German NTP and try again?

my platformio.ini looks ok:

[common]
build_flags =
    -D TFT_FONT=1 ; (0) GARAMOND, (1) TFT_TIMES_NEW_ROMAN, (2) TFT_FREE_SERIF_ITALIC, (3) TFT_ARIAL, (4) Z300
    -D NTP_Pool_1='"europe.pool.ntp.org"' ;note the double quotes
    -D NTP_Pool_2='"pool.ntp.org"'
    -D NTP_Pool_3='"time-a-g.nist.gov"'
    -D CORE_DEBUG_LEVEL=3                    ; 0 None, 1 Error, 2 Warn, 3 Info, 4 Debug, 5 Verbose
    -D CONFIG_ARDUHAL_LOG_COLORS=1
    -D ARDUINO_RUNNING_CORE=1                ; Arduino Runs On Core (setup, loop)
    -D ARDUINO_EVENT_RUNNING_CORE=0          ; Events Run On Core
    -D BOARD_HAS_PSRAM=1
    -Wall
    -Wextra

This is my settings.json which has been working until about 1900 hours GMT
{"volume":6,"ringvolume":21,"alarmtime":1380,"alarm_weekdays":0,"timeAnnouncing":"false","mute":"false","brightness":100,"sleeptime":0,"lastconnectedhost":"http://as-hls-ww-live.akamaized.net/pool_904/live/ww/bbc_radio_fourfm/bbc_radio_fourfm.isml/bbc_radio_fourfm-audio%3d96000.norewind.m3u8","station":8,"sumstations":14,"Timezone_Name":"Europe/London","Timezone_String":"GMT0BST,M3.5.0/1,M10.5.0","toneLP":3,"toneBP":-4,"toneHP":0,"timeFormat":24}

This is the platformio output, and the ESP32-S3-DevKitC-1-N32R8V Development which has been fine for weeks.
This now occors on both identical systems, prototype and hardwired

00:03:00
00:03:00 ***************************
00:03:00 * MiniWebRadio V3 *
00:03:00 ***************************
00:03:00
00:03:00 setup: .... Arduino is pinned to core 1
00:03:00 tft_info: . init ILI9341
00:03:00 setup: .... Init SD card
00:03:00 setup: .... SD card found, 3818.3 MB by 3839.0 MB free
[ 993][I][esp32-hal-ledc.c:131] ledcAttachChannel(): LEDC attached to pin 10 (channel 0, resolution 8)
00:03:00 setup: .... seek for stations.csv
00:03:00 setup: .... stations.csv found
00:03:00 setup: .... seek for WiFi networks
[ 1382][I][WiFiMulti.cpp:90] addAP(): [WIFI][APlistAdd] add SSID: TP-LINK_EB850C
[ 1413][I][WiFiMulti.cpp:90] addAP(): [WIFI][APlistAdd] add SSID: TP-LINK_EB850C
[ 1421][I][WiFiMulti.cpp:90] addAP(): [WIFI][APlistAdd] add SSID: Roise_4
[ 1429][I][WiFiMulti.cpp:90] addAP(): [WIFI][APlistAdd] add SSID: Rose
[ 1437][I][WiFiMulti.cpp:90] addAP(): [WIFI][APlistAdd] add SSID: Rosie_3
[ 1445][I][WiFiMulti.cpp:90] addAP(): [WIFI][APlistAdd] add SSID: Rosiem
[ 6705][I][WiFiMulti.cpp:134] run(): [WIFI] scan done
[ 6711][I][WiFiMulti.cpp:139] run(): [WIFI] 5 networks found
[ 6718][I][WiFiMulti.cpp:263] run(): [WIFI] Connecting BSSID: 60:E3:27:EB:85:0C SSID: TP-LINK_EB850C Channel: 1 (-36)
[ 6729][W][STA.cpp:544] disconnect(): STA already disconnected.
[ 6817][I][WiFiMulti.cpp:283] run(): [WIFI] Connecting done.
00:03:06 WiFI_info: Connecting WiFi...
00:03:06 WiFI_info: mDNS name: MiniWebRadio
00:03:06 setup: .... connected to , IP address is 192.168.1.130
00:03:06 ftpServer: Buffers allocated: 4622 bytes
00:03:06 connection to NTP failed, trying again
[ 6869][W][STA.cpp:157] _onStaArduinoEvent(): Reason: 8 - ASSOC_LEAVE
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x2b (SPI_FAST_FLASH_BOOT)
Saved PC:0x4037b7de
=> 0x4037b7de: esp_cpu_wait_for_intr at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_hw_support/cpu.c:121
SPIWP:0xee
Octal Flash Mode Enabled
For OPI Flash, Use Default Flash Boot Mode
mode:SLOW_RD, clock div:1
load:0x3fce3818,len:0x508
load:0x403c9700,len:0x4
=> 0x403c9700: ?? ??:0
load:0x403c9704,len:0xad0
=> 0x403c9704: ?? ??:0
load:0x403cc700,len:0x29d8
=> 0x403cc700: ?? ??:0
entry 0x403c9880
=> 0x403c9880: ?? ??:0
[ 624][I][esp32-hal-psram.c:92] psramInit(): PSRAM enabled

ESP32 Chip: ESP32-S3
Arduino Version: 3.0.0
ESP-IDF Version: 5.1.3
MiniWebRadio Version 3.00o Mar 02/2024
ARDUINO_LOOP_STACK_SIZE 8192 words (32 bit)
FLASH size 33554432 bytes, speed 80 MHz
CPU speed 240 MHz
SDMMC speed 20 MHz
TFT speed 40 MHz
PSRAM total size: 8388608 bytes
RESET_REASON: Software reset via esp_restart

settings.json became corrupt