uart_echo example: Core 0 panic'ed (StoreProhibited)

felipe
Posts: 11
Joined: Mon Jan 18, 2021 5:13 pm

uart_echo example: Core 0 panic'ed (StoreProhibited)

Postby felipe » Mon Feb 01, 2021 10:00 am

I have built and flashed example uart_echo to the ESP32-PICO-D4 (ESP32-PICO-KIT). Without any changes to code from ESP-IDF v4.2, it crashes in function uart_set_pin().

Code: Select all

Guru Meditation Error: Core  0 panic'ed (StoreProhibited). Exception was unhandled.
To reproduce:

Code: Select all

cd ~/esp/esp-idf/examples/peripherals/uart/uart_echo
idf.py flash
idf.py monitor
Full log:

Code: Select all

entry 0x400806f4
I (31) boot: ESP-IDF v4.2-dirty 2nd stage bootloader
I (31) boot: compile time 10:46:30
I (31) boot: chip revision: 1
I (35) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (42) boot.esp32: SPI Speed      : 40MHz
I (46) boot.esp32: SPI Mode       : DIO
I (51) boot.esp32: SPI Flash Size : 2MB
I (55) boot: Enabling RNG early entropy source...
I (61) boot: Partition Table:
I (64) boot: ## Label            Usage          Type ST Offset   Length
I (72) boot:  0 nvs              WiFi data        01 02 00009000 00006000
I (79) boot:  1 phy_init         RF data          01 01 0000f000 00001000
I (87) boot:  2 factory          factory app      00 00 00010000 00100000
I (94) boot: End of partition table
I (98) boot_comm: chip revision: 1, min. application chip revision: 0
I (105) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x072e8 ( 29416) map
I (126) esp_image: segment 1: paddr=0x00017310 vaddr=0x3ffb0000 size=0x02080 (  8320) load
I (129) esp_image: segment 2: paddr=0x00019398 vaddr=0x40080000 size=0x00404 (  1028) load
0x40080000: _WindowOverflow4 at /home/filip/esp/esp-idf/components/freertos/xtensa/xtensa_vectors.S:1730

I (135) esp_image: segment 3: paddr=0x000197a4 vaddr=0x40080404 size=0x06874 ( 26740) load
I (155) esp_image: segment 4: paddr=0x00020020 vaddr=0x400d0020 size=0x15864 ( 88164) map
0x400d0020: _stext at ??:?

I (189) esp_image: segment 5: paddr=0x0003588c vaddr=0x40086c78 size=0x04000 ( 16384) load
0x40086c78: xTaskResumeAll at /home/filip/esp/esp-idf/components/freertos/tasks.c:2244 (discriminator 3)

I (203) boot: Loaded app from partition at offset 0x10000
I (203) boot: Disabling RNG early entropy source...
I (203) cpu_start: Pro cpu up.
I (207) cpu_start: Application information:
I (212) cpu_start: Project name:     uart_echo
I (217) cpu_start: App version:      v4.2-dirty
I (222) cpu_start: Compile time:     Feb  1 2021 10:46:26
I (228) cpu_start: ELF file SHA256:  af632cdabe963a3c...
I (234) cpu_start: ESP-IDF:          v4.2-dirty
I (239) cpu_start: Starting app cpu, entry point is 0x40081674
0x40081674: call_start_cpu1 at /home/filip/esp/esp-idf/components/esp32/cpu_start.c:287

I (230) cpu_start: App cpu up.
I (250) heap_init: Initializing. RAM available for dynamic allocation:
I (257) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (263) heap_init: At 3FFB28B0 len 0002D750 (181 KiB): DRAM
I (269) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (275) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (282) heap_init: At 4008AC78 len 00015388 (84 KiB): IRAM
I (288) cpu_start: Pro cpu start user code
I (306) spi_flash: detected chip: gd
I (307) spi_flash: flash io: dio
W (307) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (317) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (0) uart: uart_set_pin:
Guru Meditation Error: Core  0 panic'ed (StoreProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x40087375  PS      : 0x00060033  A0      : 0x800860b1  A1      : 0x3ffb0710
0x40087375: uxListRemove at /home/filip/esp/esp-idf/components/freertos/list.c:215

A2      : 0x3ffae928  A3      : 0x00000001  A4      : 0x00060720  A5      : 0x00060723
A6      : 0x00000001  A7      : 0x3ffb4934  A8      : 0xffffff80  A9      : 0x3ffb3750
A10     : 0x00012889  A11     : 0x00000000  A12     : 0x00060021  A13     : 0x00060023
A14     : 0x00000001  A15     : 0xfffffffc  SAR     : 0x00000000  EXCCAUSE: 0x0000001d
EXCVADDR: 0x00012891  LBEG    : 0x00000000  LEND    : 0x00000000  LCOUNT  : 0x00000000

Backtrace:0x40087372:0x3ffb0710 0x400860ae:0x3ffb0730 0x400853f7:0x3ffb0750 0x40085685:0x3ffb0770 0x40082539:0x3ffb0780 0x400e4afb:0x3ffb4e50 0x400d277b:0x3ffb4e70 0x40085ca2:0x3ffb4e90 0x40085325:0x3ffb4eb0

0x40087372: uxListRemove at /home/filip/esp/esp-idf/components/freertos/list.c:215

0x400860ae: xTaskIncrementTick at /home/filip/esp/esp-idf/components/freertos/tasks.c:2552

0x400853f7: xPortSysTickHandler at /home/filip/esp/esp-idf/components/freertos/xtensa/port.c:300

0x40085685: _frxt_timer_int at /home/filip/esp/esp-idf/components/freertos/xtensa/portasm.S:328

0x40082539: _xt_lowint1 at /home/filip/esp/esp-idf/components/freertos/xtensa/xtensa_vectors.S:1105

0x400e4afb: esp_pm_impl_waiti at /home/filip/esp/esp-idf/components/esp32/pm_esp32.c:484

0x400d277b: esp_vApplicationIdleHook at /home/filip/esp/esp-idf/components/esp_common/src/freertos_hooks.c:63

0x40085ca2: prvIdleTask at /home/filip/esp/esp-idf/components/freertos/tasks.c:3386 (discriminator 1)

0x40085325: vPortTaskWrapper at /home/filip/esp/esp-idf/components/freertos/xtensa/port.c:143



ELF file SHA256: af632cdabe963a3c

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

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 188777542, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:4
load:0x3fff0034,len:7072
ho 0 tail 12 room 4
load:0x40078000,len:13212
load:0x40080400,len:4568
0x40080400: _init at ??:?

Is this a bug, or I miss some step? This happens also when I configure UART TX pin = 5, UART RX pin = 18, no flow control.

felipe
Posts: 11
Joined: Mon Jan 18, 2021 5:13 pm

Re: uart_echo example: Core 0 panic'ed (StoreProhibited)

Postby felipe » Mon Feb 01, 2021 10:26 am

Example uart_async_rxtxtasks from IDF v4.2 works fine, I can send and receive data over UART, on pins 5 and 18. It's only uart_echo that crashes,

Who is online

Users browsing this forum: No registered users and 93 guests