Comments (16)
Latest master (by 24.08.2022) is crashing the Modem Console Example.
ESP-IDF v4.4.2
Log:
I (29) boot: ESP-IDF v4.4.2 2nd stage bootloader
I (29) boot: compile time 14:39:50
I (29) boot: chip revision: 0
I (31) boot.esp32s3: Boot SPI Speed : 80MHz
I (36) boot.esp32s3: SPI Mode : DIO
I (40) boot.esp32s3: SPI Flash Size : 2MB
I (45) boot: Enabling RNG early entropy source...
I (51) boot: Partition Table:
I (54) boot: ## Label Usage Type ST Offset Length
I (61) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (69) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (76) boot: 2 factory factory app 00 00 00010000 00177000
I (84) boot: End of partition table
I (88) esp_image: segment 0: paddr=00010020 vaddr=3c080020 size=1befch (114428) map
I (117) esp_image: segment 1: paddr=0002bf24 vaddr=3fc92a30 size=02810h ( 10256) load
I (119) esp_image: segment 2: paddr=0002e73c vaddr=40374000 size=018dch ( 6364) load
I (124) esp_image: segment 3: paddr=00030020 vaddr=42000020 size=7a8dch (501980) map
I (221) esp_image: segment 4: paddr=000aa904 vaddr=403758dc size=0d150h ( 53584) load
I (233) esp_image: segment 5: paddr=000b7a5c vaddr=50000000 size=00010h ( 16) load
I (239) boot: Loaded app from partition at offset 0x10000
I (239) boot: Disabling RNG early entropy source...
I (253) cpu_start: Pro cpu up.
I (253) cpu_start: Starting app cpu, entry point is 0x40375374
0x40375374: call_start_cpu1 at /home/franz/esp-idf-v4.4.2/components/esp_system/port/cpu_start.c:160
I (232) cpu_start: App cpu up.
I (268) cpu_start: Pro cpu start user code
I (268) cpu_start: cpu freq: 160000000
I (268) cpu_start: Application information:
I (270) cpu_start: Project name: modem_console
I (276) cpu_start: App version: v0.5-25-gfb63164
I (282) cpu_start: Compile time: Aug 24 2022 14:40:03
I (288) cpu_start: ELF file SHA256: 05eb8f74fdc40952...
I (294) cpu_start: ESP-IDF: v4.4.2
I (299) heap_init: Initializing. RAM available for dynamic allocation:
I (306) heap_init: At 3FC96DA0 len 00049260 (292 KiB): D/IRAM
I (312) heap_init: At 3FCE0000 len 0000EE34 (59 KiB): STACK/DRAM
I (319) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (325) heap_init: At 600FE000 len 00002000 (8 KiB): RTCRAM
I (332) spi_flash: detected chip: gd
I (336) spi_flash: flash io: dio
W (340) spi_flash: Detected size(16384k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (353) sleep: Configure to isolate all GPIO pins in sleep state
I (360) sleep: Enable automatic switching of GPIO sleep configuration
I (367) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (387) gpio: GPIO[11]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (387) gpio: GPIO[10]| InputEn: 0| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:0
I (2397) modem_pwkey: status = 1
I (2407) uart: queue free spaces: 30
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x42006e38 PS : 0x00060c33 A0 : 0x82006f85 A1 : 0x3fcf34b0
0x42006e38: find_desc_for_source at /home/franz/esp-idf-v4.4.2/components/esp_hw_support/intr_alloc.c:161
A2 : 0x0000001c A3 : 0x00000000 A4 : 0x00000001 A5 : 0x00060c23
A6 : 0x00000002 A7 : 0xff000000 A8 : 0x82062dbc A9 : 0x00000000
A10 : 0x3fce5498 A11 : 0x3fce5498 A12 : 0x3fcf3434 A13 : 0x00000000
A14 : 0x3fcf09b0 A15 : 0x00000005 SAR : 0x0000001a EXCCAUSE: 0x0000001c
EXCVADDR: 0x82062dbc LBEG : 0x400556d5 LEND : 0x400556e5 LCOUNT : 0xfffffffe
Backtrace:0x42006e35:0x3fcf34b00x42006f82:0x3fcf34d0 0x420071bf:0x3fcf3510 0x4200739d:0x3fcf3550 0x42017801:0x3fcf3580 0x42018759:0x3fcf35c0 0x4200b656:0x3fcf3610 0x4200aaae:0x3fcf3ad0 0x4200a68c:0x3fcf3bc0 0x4200864d:0x3fcf3c00 0x42007d2d:0x3fcf3f70 0x4207a5d5:0x3fcf3f90 0x4037da91:0x3fcf3fb0
0x42006e35: find_desc_for_source at /home/franz/esp-idf-v4.4.2/components/esp_hw_support/intr_alloc.c:160
0x42006f82: get_available_int at /home/franz/esp-idf-v4.4.2/components/esp_hw_support/intr_alloc.c:299
0x420071bf: esp_intr_alloc_intrstatus at /home/franz/esp-idf-v4.4.2/components/esp_hw_support/intr_alloc.c:486
0x4200739d: esp_intr_alloc at /home/franz/esp-idf-v4.4.2/components/esp_hw_support/intr_alloc.c:604
0x42017801: uart_isr_register at /home/franz/esp-idf-v4.4.2/components/driver/uart.c:629 (discriminator 2)
0x42018759: uart_driver_install at /home/franz/esp-idf-v4.4.2/components/driver/uart.c:1622
0x4200b656: esp_modem::uart_resource::uart_resource(esp_modem_uart_term_config const*, QueueDefinition**, int) at /home/franz/git/krone/pppos_client_sample/modem_console/components/esp_modem/src/esp_modem_term_uart.cpp:62 (discriminator 4)
0x4200aaae: esp_modem::UartTerminal::UartTerminal(esp_modem_dte_config const*) at /home/franz/git/krone/pppos_client_sample/modem_console/components/esp_modem/src/esp_modem_uart.cpp:55
(inlined by) std::_MakeUniq<esp_modem::UartTerminal>::__single_object std::make_unique<esp_modem::UartTerminal, esp_modem_dte_config const*&>(esp_modem_dte_config const*&) at /home/franz/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/xtensa-esp32s3-elf/include/c++/8.4.0/bits/unique_ptr.h:835
(inlined by) esp_modem::create_uart_terminal(esp_modem_dte_config const*) at /home/franz/git/krone/pppos_client_sample/modem_console/components/esp_modem/src/esp_modem_uart.cpp:112
0x4200a68c: esp_modem::create_uart_dte(esp_modem_dte_config const*) at /home/franz/git/krone/pppos_client_sample/modem_console/components/esp_modem/src/esp_modem_api_target.cpp:33
0x4200864d: modem_console_main at /home/franz/git/krone/pppos_client_sample/modem_console/components/modem_console/modem_console_main.cpp:79
0x42007d2d: app_main at /home/franz/git/krone/pppos_client_sample/modem_console/main/main.c:22
0x4207a5d5: main_task at /home/franz/esp-idf-v4.4.2/components/freertos/port/port_common.c:141 (discriminator 2)
0x4037da91: vPortTaskWrapper at /home/franz/esp-idf-v4.4.2/components/freertos/port/xtensa/port.c:131
ELF file SHA256: 05eb8f74fdc40952
Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x2f (SPI_FAST_FLASH_BOOT)
Saved PC:0x4037592c
0x4037592c: esp_restart_noos at /home/franz/esp-idf-v4.4.2/components/esp_system/port/soc/esp32s3/system_internal.c:143 (discriminator 1)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x1650
load:0x403c9700,len:0xbb8
load:0x403cc700,len:0x2f88
entry 0x403c9954
I (29) boot: ESP-IDF v4.4.2 2nd stage bootloader
from esp-protocols.
it is crashing at this line:
auto uart_dte = create_uart_dte(&dte_config);
from esp-protocols.
the Strange thing is that the cmux_sample does run.
from esp-protocols.
@franz-ms-muc Are you running just the clean console example without a modification? Do you use any specific configuration (IDF or project)?
Latest master (by 24.08.2022) is crashing the Modem Console Example.
ESP-IDF v4.4.2
Have just tested the latest master 8f00fc1 with IDF v4.4.2
espressif/esp-idf@1b16ef6 and works as expected.
As for the reported crash, the exception comes from this line
trying to dereference a linked list of interrupt vector from
which at seems to point to an address similar to this number:
EXCVADDR: 0x82062dbc
and that's not a valid pointer. It looks like a memory corruption of the interrupt table.
from esp-protocols.
clean console example without a modification:
brings:
CMake Error at /home/franz/esp-idf-v4.4.2/tools/cmake/build.cmake:201 (message):
Failed to resolve component 'cdc_acm_host'.
from esp-protocols.
try same with removing USB-Stack.
does compile.
but same Crash.
was deleting sdkconfig to have a clean environment ...
from esp-protocols.
Done some Tests.
the Crash comes from the new Exception Handling ...
i will keep researching.
from esp-protocols.
If i add this to skdconfig.
https://github.com/espressif/esp-idf/blob/master/examples/cxx/exceptions/sdkconfig.defaults
it does not crash anymore !
from esp-protocols.
changed the Title to reflect the Problem more precise.
from esp-protocols.
Done some Tests. the Crash comes from the new Exception Handling ... i will keep researching.
Is it the same crash as you initially posted? Coming from the uart terminal constructor when registering a uart interrupt ?
uart_driver_install at /home/franz/esp-idf-v4.4.2/components/driver/uart.c:1622
from esp-protocols.
from esp-protocols.
I would still like to better understand this issue.
So the steps to reproduce this is to
- Remove the
components/esp_modem/examples/modem_console/components
- Compile with the default config (exceptions are disabled by default) and esp32s3
- Run the app
...and It crashes with the backtrace posted above
Compilation issue: Failed to resolve component 'cdc_acm_host'
The example should compile clean for all targets both with and without the USB host component (on v4.4.2
) Could you please share more details how you build it? (The usual trouble is that sometimes people switch between different IDF versions and keep multiple repos of different versions so the build system might reference one for generation step and another for compilation...?)
from esp-protocols.
I would still like to better understand this issue.
So the steps to reproduce this is to
- Remove the
components/esp_modem/examples/modem_console/components
- Compile with the default config (exceptions are disabled by default) and esp32s3
- Run the app
...and It crashes with the backtrace posted aboveCompilation issue:
Failed to resolve component 'cdc_acm_host'
The example should compile clean for all targets both with and without the USB host component (on
v4.4.2
) Could you please share more details how you build it? (The usual trouble is that sometimes people switch between different IDF versions and keep multiple repos of different versions so the build system might reference one for generation step and another for compilation...?)
do not understand your Question.
from esp-protocols.
Sorry that wasn't very clear. I was just asking for more details to be able to reproduce (and fix) this issue.
So far, we've been discussing these two problems:
- The crash if we just run the default example (provided exceptions are off)
- Compilation problem -- component dependency
Let's start with 2)
as it's very simple and we should be able to recreate it very quickly. Could you please provide the steps to reproduce? As I wasn't able -- and maybe it's been fixed in the meantime (per changes in the USB component)
As for the 1)
I've tried the steps described above, but no luck so far. Is there any specific config you're using? (except for exceptions:-) Or any kind of update/modification of that example? Or just anything that could help me to locate the problem?
from esp-protocols.
OK, i will make an Update to latest ESP-Modem and try out.
from esp-protocols.
so, with #178 this issue seems also fixed.
from esp-protocols.
Related Issues (20)
- mDNS results in esp_netif_lwip log spam (IDFGH-12320) HOT 1
- Freezing of the ESP, triggering the WDT! (ESP-MODEM) (IDFGH-12332) HOT 3
- Response Issue in CMUX Mode (IDFGH-12431) HOT 15
- little help in getting esp_modem and LiliGo-TSIM7080-S3 to work (IDFGH-12454) HOT 3
- esp-modem next step : ppp auth ? (IDFGH-12496) HOT 5
- esp-modem: AT command response truncated sometimes when in CMUX mode (IDFGH-12526) HOT 3
- mdns: ethernet link flap doesn't restart mdns if DHCP in use. (IDFGH-12563) HOT 2
- esp-netif_lwip-ppp: Connection lost, Modem Disconnect from PPP Server (IDFGH-12618) HOT 5
- Choosing The Right Mode For SIMCOM or Any Modem... (AT or DialUP) (IDFGH-12638) HOT 10
- problems with modem_tcp_client and Telit LE910Cx modem (IDFGH-12643) HOT 1
- esp_mqtt_cxx not set last will (IDFGH-12648)
- Kconfig in modem_example limits the UART pins till 31 - should be higher to support s3 (IDFGH-12700) HOT 1
- LwIP PPP connection close and no authentication (IDFGH-12720) HOT 3
- esp_modem freezes when flow control is enabled and module is unresponsive (IDFGH-12739) HOT 1
- C++ example please (IDFGH-12752) HOT 2
- EPPP Reverse link to provide Access Point (IDFGH-12759) HOT 12
- esp_wifi_remote: key-pair generated by generate_test_certs.py not work in example (IDFGH-12801) HOT 10
- Fix code scanning alert - expected '(' for function-style cast or type construction [clang-diagnostic-error] (IDFGH-12824)
- modem pppos_client idf4.4.7 Not compatible with smart_config process (IDFGH-12876) HOT 2
- Websocket - Allow to choose which memory takes (internal, external) for buffer (IDFGH-12913) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-protocols.