crash on uart_read_bytes after some time

User avatar
gunar.kroeger
Posts: 143
Joined: Fri Jul 27, 2018 6:48 pm

crash on uart_read_bytes after some time

Postby gunar.kroeger » Tue Nov 05, 2019 8:19 pm

I have seen this crash a few times on esp_idf_v3.3
what could cause the crash when calling the uart_read_bytes function??
We only read one byte at a time to get NMEA messages

Code: Select all

		// Read data from the UART
		int len = uart_read_bytes(gps_uart_port, (uint8_t*) data, 1, pdMS_TO_TICKS(2000));

Code: Select all

Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandle
d.
Core 0 register dump:
PC      : 0x40089dd7  PS      : 0x00060031  A0      : 0x8008cc9d  A1      : 0x3f
fbf010
0x40089dd7: r_ld_fm_sket_isr at ??:?

A2      : 0x3ffb82ac  A3      : 0x3ffb82ac  A4      : 0x00000000  A5      : 0x3f
fb82ac
A6      : 0x3ffb82ac  A7      : 0x3ffb8284  A8      : 0x80089dbc  A9      : 0x3f
fbeff0
A10     : 0x000000ff  A11     : 0x000000ff  A12     : 0x3ffb1594  A13     : 0x3f
fb8d40
A14     : 0x00000001  A15     : 0x00060523  SAR     : 0x00000019  EXCCAUSE: 0x00
00001c
EXCVADDR: 0x00000000  LBEG    : 0x40093b4c  LEND    : 0x40093b57  LCOUNT  : 0xff
ffffff
0x40093b4c: memset at /home/jeroen/esp8266/esp32/newlib_xtensa-2.2.0-bin/newlib_
xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/machine/xtensa/../../../../.././newlib
/libc/machine/xtensa/memset.S:142

0x40093b57: memset at /home/jeroen/esp8266/esp32/newlib_xtensa-2.2.0-bin/newlib_
xtensa-2.2.0/xtensa-esp32-elf/newlib/libc/machine/xtensa/../../../../.././newlib
/libc/machine/xtensa/memset.S:152

Core 0 was running in ISR context:
EPC1    : 0x40089dd7  EPC2    : 0x00000000  EPC3    : 0x00000000  EPC4    : 0x00
000000
0x40089dd7: r_ld_fm_sket_isr at ??:?


ELF file SHA256: 3069e56b224d402be64ce0321667ef0ea2dd912158fc26193f50486a2631cc9
6

Backtrace: 0x40089dd7:0x3ffbf010 0x4008cc9a:0x3ffbf040 0x4008d57f:0x3ffbf060 0x4
0086d59:0x3ffbf080 0x4009b909:0x3ffdeeb0 0x4008f5b7:0x3ffdeef0 0x4008fb65:0x3ffd
ef30 0x401950b9:0x3ffdef70 0x4010e8af:0x3ffdefc0
0x40089dd7: r_ld_fm_sket_isr at ??:?

0x4008cc9a: r_rwbt_isr at ??:?

0x4008d57f: r_rwbtdm_isr_wrapper at intc.c:?

0x40086d59: _xt_lowint1 at C:/msys32/home/gunar.kroeger/esp/esp-idf-v3.3/compone
nts/freertos/xtensa_vectors.S:1154

0x4009b909: xQueueGenericReceive at C:/msys32/home/gunar.kroeger/esp/esp-idf-v3.
3/components/freertos/queue.c:2038

0x4008f5b7: prvReceiveGeneric at C:/msys32/home/gunar.kroeger/esp/esp-idf-v3.3/c
omponents/esp_ringbuf/ringbuf.c:992

0x4008fb65: xRingbufferReceive at C:/msys32/home/gunar.kroeger/esp/esp-idf-v3.3/
components/esp_ringbuf/ringbuf.c:992

0x401950b9: uart_read_bytes at C:/msys32/home/gunar.kroeger/esp/esp-idf-v3.3/com
ponents/driver/uart.c:1205

0x4010e8af: taskGPS at C:/Users/gunar.kroeger/Desktop/eclipse/ESP32_Ziegesauger_
A/main/GPS.c:134
"Running was invented in 1612 by Thomas Running when he tried to walk twice at the same time."

Who is online

Users browsing this forum: BeratK, LiliumJSN and 110 guests