Open bipsendk opened 7 months ago
FYI - the result of the build with the newer framework - not quite sure why it cannot read the SD card, as it works OK with the same framework for the fseek test:
I (29) boot: compile time 20:34:44
I (29) boot: Multicore bootloader
I (32) boot: chip revision: v3.0
I (36) boot.esp32: SPI Speed : 40MHz
I (41) boot.esp32: SPI Mode : DIO
I (45) boot.esp32: SPI Flash Size : 4MB
I (50) boot: Enabling RNG early entropy source...
I (55) boot: Partition Table:
I (59) boot: ## Label Usage Type ST Offset Length
I (66) boot: 0 nvs WiFi data 01 02 00009000 00005000
I (73) boot: 1 otadata OTA data 01 00 0000e000 00002000
I (81) boot: 2 app0 OTA app 00 10 00010000 00140000
I (88) boot: 3 app1 OTA app 00 11 00150000 00140000
I (96) boot: 4 spiffs Unknown data 01 82 00290000 00160000
I (103) boot: 5 coredump Unknown data 01 03 003f0000 00010000
I (111) boot: End of partition table
I (115) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=215b0h (136624) map
I (173) esp_image: segment 1: paddr=000315d8 vaddr=3ffb0000 size=032b4h ( 12980) load
I (179) esp_image: segment 2: paddr=00034894 vaddr=40080000 size=0b784h ( 46980) load
I (198) esp_image: segment 3: paddr=00040020 vaddr=400d0020 size=ad920h (710944) map
I (456) esp_image: segment 4: paddr=000ed948 vaddr=4008b784 size=09b6ch ( 39788) load
I (483) boot: Loaded app from partition at offset 0x10000
I (483) boot: Disabling RNG early entropy source...
I (494) cpu_start: Multicore app
I (495) cpu_start: Pro cpu up.
I (495) cpu_start: Starting app cpu, entry point is 0x40081d84
I (485) cpu_start: App cpu up.
I (515) cpu_start: Pro cpu start user code
I (515) cpu_start: cpu freq: 160000000
I (515) cpu_start: Application information:
I (519) cpu_start: Project name: espirgbani_pio-master-NEW
I (526) cpu_start: App version: 1
I (530) cpu_start: Compile time: Jan 17 2024 20:30:37
I (536) cpu_start: ELF file SHA256: 57173bc45eb927f1...
I (542) cpu_start: ESP-IDF: 4.4.6
I (547) cpu_start: Min chip rev: v0.0
I (552) cpu_start: Max chip rev: v3.99
I (557) cpu_start: Chip rev: v3.0
I (562) heap_init: Initializing. RAM available for dynamic allocation:
I (569) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (575) heap_init: At 3FFC5A00 len 0001A600 (105 KiB): DRAM
I (581) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (587) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (594) heap_init: At 400952F0 len 0000AD10 (43 KiB): IRAM
I (601) spi_flash: detected chip: generic
I (605) spi_flash: flash io: dio
I (611) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
[ 49][W][main.cpp:71] setup(): reset reason: 12, heap: 211120, min_heap: 211112
I (207) gpio: GPIO[33]| InputEn: 1| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (208) gpio: GPIO[35]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (216) gpio: GPIO[32]| InputEn: 1| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (225) gpio: GPIO[14]| InputEn: 1| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
[ 256][E][json_settings.cpp:53] readFileDyn(): fopen(/sd/settings.json, rb) failed: Invalid argument
[ 258][W][json_settings.cpp:128] set_settings_file(): writing default-settings to /sd/settings.json
[ 271][E][json_settings.cpp:136] set_settings_file(): could not copy /spiffs/default_settings.json to /sd/settings.json: Invalid argument
[ 282][E][json_settings.cpp:53] readFileDyn(): fopen(/sd/settings.json, rb) failed: Invalid argument
[ 292][E][json_settings.cpp:164] jGetI(): max_frame_rate is not a number, falling back to 30
[ 300][E][json_settings.cpp:184] jGetB(): column_swap is not a bool, falling back to false
[ 310][E][json_settings.cpp:164] jGetI(): latch_offset is not a number, falling back to 0
[ 319][V][rgb_led_panel.cpp:76] init_rgb(): latch_offset = 127
[ 325][E][json_settings.cpp:164] jGetI(): extra_blank is not a number, falling back to 1
[ 334][E][json_settings.cpp:164] jGetI(): clkm_div_num is not a number, falling back to 4
[ 343][V][rgb_led_panel.cpp:84] init_rgb(): clkm_div_num = 4
[ 350][E][json_settings.cpp:184] jGetB(): is_clk_inverted is not a bool, falling back to true
[ 360][I][rgb_led_panel.cpp:124] init_rgb(): I2S setup done.
[ 375][E][json_settings.cpp:154] jGetS(): wifi_ssid is not a string, falling back to RG47C-0
[ 375][E][json_settings.cpp:154] jGetS(): hostname is not a string, falling back to ESP-PINBALL
[ 385][E][json_settings.cpp:154] jGetS(): wifi_pw is not a string, falling back to DemsPi8!av63ippo#
I (385) wifi:wifi driver task: 3ffdd930, prio:23, stack:6656, core=0
I (1419) wifi:wifi firmware version: 1ba8b6a
I (1420) wifi:wifi certification version: v7.0
I (1420) wifi:config NVS flash: enabled
I (1421) wifi:config nano formating: disabled
I (1425) wifi:Init data frame dynamic rx buffer num: 32
[2]0[;3V]7m[W[ iF iG58en5]er[Vic].[WcippFi:3G4e0ne] ri_ac.rdcuppin:o9_7]ev senett__cesbp()_:inSeAfate_ie(0mon[ 588][D][WiFiGeneric.cpp:1039] _eventCallback(): Arduino Event: 2 - STA_START
figuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0
I (1599) wifi:Set ps type: 1x buffer num: 32
I (1444) wifi:Init static rx buffer size: 1600
[ 606][I][esp_comms.cpp:104] init_comms(): This is ESP-PINBALL, connecting to RG47C-0
I (1616) gpio: GPIO[0]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (1617) wifi:new:<9,0>, old:<1,0>, ap:<255,255>, sta:<9,0>, prof:1
I (1633) wifi:state: init -> auth (b0)
I (1638) wifi:state: auth -> assoc (0)
I (1644) wifi:state: assoc -> run (10)
I (1662) wifi:connected with RG47C-0, aid = 22, channel 9, BW20, bssid = 28:c7:ce:1e:f8:c0
I (1663) wifi:security: WPA2-PSK, phy: bgn, rssi: -60
I (1670) wifi:pm start, type: 140
I (1484) wifi_init: WiFi IRAM OP enabled
I (1672) wifi:<ba-add>idx:0 (ifx:0, 28:c7:ce:1e:f8:c0), tid:0, ssn:2567, winSize:64
[ 673][V][WiFiGeneric.cpp:355] _arduino_event_cb(): STA Connected: SSID: RG47C-0, BSSID: 28:c7:ce:1e:f8:c0, Channel: 9, Auth: WPA2_PSK
[ 685][D][WiFiGeneric.cpp:1039] _eventCallback():2Arduino Event: 4 - STA_CONNECTED
I (1719) wifi:AP's beacon interval = 104448 us, DTIM period = 2
[ 1689][V][WiFiGeneric.cpp:369] _arduino_event_cb(): STA Got New IP:192.168.225.153
[ 1690][D][WiFiGeneric.cpp:1039] _eventCallback(): Arduino Event: 7 - STA_GOT_IP
[ 1695][D][WiFiGeneric.cpp:1102] _eventCallback(): STA IP: 192.168.225.153, MASK: 255.255.255.0, GW: 192.168.225.202
0;32mI (2694) esp_netif_handlers: sta ip: 192.168.225.153, mask: 255.255.255.0, gw: 192.168.225.202
[ 1723][I][esp_comms.cpp:115] init_comms(): Initializing SNTP
[ 2723][E][json_settings.cpp:154] jGetS(): hostname is not a string, falling back to ESP-PINBALL
[ 2723][E][json_settings.cpp:184] jGetB(): enable_ota is not a bool, falling back to false
[ 2745][E][json_settings.cpp:154] jGetS(): timezone is not a string, falling back to PST8PDT
[ 2745][I][esp_comms.cpp:144] init_comms(): Setting timezone to TZ = PST8PDT
[ 2751][I][esp_comms.cpp:152] init_comms(): Local Time: Wed Jan 17 11:42:32 2024 (1705520552)
[ 2760][W][main.cpp:93] setup(): after COMMS, heap: 100768, min_heap: 100656
[ 2768][E][json_settings.cpp:184] jGetB(): test_pattern is not a bool, falling back to true
[ 2777][W][main.cpp:101] setup(): RGB test-pattern mode!!!
[ 2783][E][json_settings.cpp:164] jGetI(): tp_brightness is not a number, falling back to 10
[ 2793][E][json_settings.cpp:164] jGetI(): tp_brightness is not a number, falling back to 10
[ 2812][D][frame_buffer.cpp:206] tp_task(): Diagonal
[ 7822][D][frame_buffer.cpp:213] tp_task(): Vertical stripes ...
[ 7822][D][frame_buffer.cpp:185] tp_stripes_sequence(): stripes 1 / 8
[ 8335][D][frame_buffer.cpp:185] tp_stripes_sequence(): stripes 2 / 8
[ 8846][D][frame_buffer.cpp:185] tp_stripes_sequence(): stripes 3 / 8
Guru Meditation Error: Core 0 panic'ed (LoadStoreError). Exception was unhandled.
Core 0 register dump:
PC : 0x400d9b47 PS : 0x00060e30 A0 : 0x800d9c66 A1 : 0x3ffe8450
A2 : 0x3ffe0454 A3 : 0x3ffe2f60 A4 : 0x401772a0 A5 : 0x00000000
A6 : 0x3ffe0454 A7 : 0x3ffe332c A8 : 0x800d9bba A9 : 0x3ffe8430
A10 : 0x3ffe2f60 A11 : 0x40000de8 A12 : 0x3ffe2ac8 A13 : 0x3ffe323a
A14 : 0x0000000d A15 : 0x00000000 SAR : 0x0000001d EXCCAUSE: 0x00000003
EXCVADDR: 0x40000df7 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xfffffffe
Backtrace: 0x400d9b44:0x3ffe8450 0x400d9c63:0x3ffe84b0 0x400d9d69:0x3ffe84f0 0x400d9f5d:0x3ffe8550 0x4015d519:0x3ffe8570 0x4015d56d:0x3ffe85a0 0x4015d5b1:0x3ffe85c0 0x4015d76e:0x3ffe85e0 0x4015d83f:0x3ffe8600 0x4008c3a1:0x3ffe8630
#0 0x400d9b44:0x3ffe8450 in AsyncWebServerRequest::_removeNotInterestingHeaders() at .pio/libdeps/esp32dev/ESP Async WebServer/src/WebRequest.cpp:184
#1 0x400d9c63:0x3ffe84b0 in AsyncWebServerRequest::_parseLine() at .pio/libdeps/esp32dev/ESP Async WebServer/src/WebRequest.cpp:571
#2 0x400d9d69:0x3ffe84f0 in AsyncWebServerRequest::_onData(void*, unsigned int) at .pio/libdeps/esp32dev/ESP Async WebServer/src/WebRequest.cpp:123
#3 0x400d9f5d:0x3ffe8550 in std::_Function_handler<void (void*, AsyncClient*, void*, unsigned int), AsyncWebServerRequest::AsyncWebServerRequest(AsyncWebServer*, AsyncClient*)::{lambda(void*, AsyncClient*, void*, unsigned
int)#8}>::_M_invoke(std::_Any_data const&, void*&&, AsyncClient*&&, std::_Any_data const&, unsigned int&&) at .pio/libdeps/esp32dev/ESP Async WebServer/src/WebRequest.cpp:76
(inlined by) _M_invoke at c:\.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\include\c++\8.4.0\bits/std_function.h:297
#4 0x4015d519:0x3ffe8570 in std::function<void (void*, AsyncClient*, void*, unsigned int)>::operator()(void*, AsyncClient*, void*, unsigned int) const at c:\.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\include\c++\8.4.0\bits/std_function.h:687
#5 0x4015d56d:0x3ffe85a0 in AsyncClient::_recv(tcp_pcb*, pbuf*, signed char) at .pio/libdeps/esp32dev/AsyncTCP@src-7fb2940bccb78b8d2de6915ae328b7fc/src/AsyncTCP.cpp:934
#6 0x4015d5b1:0x3ffe85c0 in AsyncClient::_s_recv(void*, tcp_pcb*, pbuf*, signed char) at .pio/libdeps/esp32dev/AsyncTCP@src-7fb2940bccb78b8d2de6915ae328b7fc/src/AsyncTCP.cpp:1210
#7 0x4015d76e:0x3ffe85e0 in _handle_async_event(lwip_event_packet_t*) at .pio/libdeps/esp32dev/AsyncTCP@src-7fb2940bccb78b8d2de6915ae328b7fc/src/AsyncTCP.cpp:162
#8 0x4015d83f:0x3ffe8600 in _async_service_task(void*) at .pio/libdeps/esp32dev/AsyncTCP@src-7fb2940bccb78b8d2de6915ae328b7fc/src/AsyncTCP.cpp:197
#9 0x4008c3a1:0x3ffe8630 in vPortTaskWrapper at C:\.platformio\packages\framework-espidf\components\freertos\port\xtensa/port.c:142
ELF file SHA256: 57173bc45eb927f1
Rebooting...
I have managed to get the code compiled on a newer framework, also with the fseek "hack"/optimizartion enabled in the framework.
One issue remains, though - it seems like the partitions.bin file isn't created.
I am not sure what part actually creates this one.
for lib_deps I have had to change to this - not sure if that affects the generation of the data:
Let me know if I should share the modified files