Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[can not write and read]Guru Meditation Error: Core 0 panic'ed (Load access fault). Exception was unhandled. #5

Open
QGB opened this issue Apr 25, 2023 · 4 comments

Comments

@QGB
Copy link

QGB commented Apr 25, 2023

compile modserial.c sw_serial.h as micropython module

I connect IO8 IO9 together

>>> import serial
>>> port = serial.new(8,9,False,512)

>>> serial.open(port,9600)
E (93725) gpio: gpio_install_isr_service(449): GPIO isr service already installed
0

>>> serial.write(port,44)
>>> serial.write(port,44)
>>> serial.read(port)
-1

>>> serial.write(port,44)
>>> serial.any(port)
0



>>> serial.any(port)
0
>>> port
Guru Meditation Error: Core  0 panic'ed (Load access fault). Exception was unhandled.

Core  0 register dump:
MEPC    : 0x42007d5a  RA      : 0x42007d52  SP      : 0x3fcc47c0  GP      : 0x3fc93c00
TP      : 0x3fc99d64  T0      : 0x4005890e  T1      : 0x4038e4ba  T2      : 0xffffffff
S0/FP   : 0x3fcd00cc  S1      : 0x3c1368a4  A0      : 0x3fc9babc  A1      : 0x3fcc4c80
A2      : 0x00000001  A3      : 0x3fcc49a8  A4      : 0x00000009  A5      : 0x00000000
A6      : 0x00000000  A7      : 0x00000001  S2      : 0x00000001  S3      : 0x3fcb0480
S4      : 0x3fffffff  S5      : 0x000000b0  S6      : 0x3fcb03e9  S7      : 0x3fcc4990
S8      : 0x00000030  S9      : 0x3c12d000  S10     : 0x3c12d000  S11     : 0x3fc9c000
T3      : 0x00000000  T4      : 0x00000000  T5      : 0x00000000  T6      : 0x00000002
MSTATUS : 0x00001881  MTVEC   : 0x40380001  MCAUSE  : 0x00000005  MTVAL   : 0x00000012
MHARTID : 0x00000000

Stack memory:
3fcc47c0: 0x000000c0 0x3c137000 0x3fcd00cc 0x4203c54a 0x000000c0 0x0000045b 0x000022da 0x4200a7aa
3fcc47e0: 0x000000c0 0x3fcc49a4 0x3fcb03e8 0x403829e8 0x00000001 0x00000004 0x3fcc49ac 0x3fcc4990
3fcc4800: 0x3c128454 0x3fc9babc 0x3fcc49a8 0x00000000 0x00000012 0x00000000 0x3c136ba8 0x3fcc49a0
3fcc4820: 0x00000020 0x00000000 0x3fcc4a18 0x4207b8f6 0x403822c6 0x3fcc49f0 0x3fc9bb14 0x00000000
3fcc4840: 0x00000000 0x00000000 0x00000002 0x00000000 0x3fcc4990 0x00000030 0x3c12d000 0x3c12d000
3fcc4860: 0x3fc9c000 0x3fcc47f0 0x00000000 0x00000000 0x00000001 0x00000004 0x00000000 0x00000001
3fcc4880: 0x00000002 0x00000002 0x3fcb0480 0x00000004 0x3fcb0490 0x3fcc49a4 0x3fcb0488 0x4203b9c4
3fcc48a0: 0x00000002 0x0000bb00 0x00000001 0x3fcc49a4 0x000006e2 0x00000000 0x3fcb0488 0x40383b56
3fcc48c0: 0x00000030 0x000094bd 0x00000001 0x3fc9c000 0x3c12d000 0x3c12d000 0x00000001 0x00000002
3fcc48e0: 0x00000000 0x000000fc 0x3fcc4a10 0x00000011 0x00000001 0x3fcc4970 0x3fcc4998 0x3fcb03d0
3fcc4900: 0x3fcb05c0 0x00000000 0x00000010 0x4203b82c 0x3fcb0570 0x3fcb0570 0x3c122f5c 0x42007d16
3fcc4920: 0x3fcb0898 0x3fcc4970 0x3fcb0400 0x4200ab04 0x00000002 0x00000000 0x00000000 0x00000000
3fcc4940: 0x00000000 0x3fcb0400 0x00000002 0x3fcb03d0 0x3fcb05c0 0x00000000 0x3fcb0400 0x3fc9c000
3fcc4960: 0x3c12d000 0x3c12d000 0x00000030 0x3fcc4990 0x00000000 0x00000002 0x00000000 0x00000000
3fcc4980: 0x00000000 0x3fc9bb14 0x3fcc49f0 0x4200a8e8 0x3fcb0570 0x3fcb03e7 0x3fcc49a0 0x00000002
3fcc49a0: 0x3fc9bb14 0x3c135f64 0x3fcd00cc 0x3fcb0610 0x3c1231fc 0x00000004 0x3fcc49f0 0x4200a83c
3fcc49c0: 0x3c12d000 0x3c12d000 0x3c138000 0x3c138000 0x3c138000 0x3c138000 0x3c138000 0x3c121000
3fcc49e0: 0x00000001 0x00000004 0x3fcb0570 0x420476aa 0x0000003f 0x00000016 0x3fcc4b70 0x00000000
3fcc4a00: 0x3fcc4a4c 0x00000037 0x00000000 0x00000000 0x3fcb0898 0x3fcb0890 0x00000000 0x00000000
3fcc4a20: 0x4204762a 0x00000003 0x00000004 0x00000001 0x3c121000 0x3c138000 0x3c138000 0x3c138000
3fcc4a40: 0x3c138000 0x3c138000 0x3c12d000 0x3c12d000 0x3fc9c000 0x3fcc49f0 0x00000000 0x00000000
3fcc4a60: 0x00000001 0x00000001 0x3fcc500c 0x4038c930 0x00000000 0x00000000 0x3fcc500c 0x4038ccd2
3fcc4a80: 0x00000000 0x3fc9b000 0x3fc935d0 0x00000000 0x00000000 0x3fcd0498 0x3fcc0000 0x403919d6
3fcc4aa0: 0x3c138000 0x3c138000 0x3c138000 0x3c1217cc 0x00000002 0x00000000 0x3fc9b86c 0x4207b8f6
3fcc4ac0: 0x3fc9b640 0x00000054 0x3fc9b8e8 0x00000002 0x600c0000 0x00000001 0x00000001 0x00000002
3fcc4ae0: 0xffffffff 0x3c1217cc 0x00000002 0x3c121000 0x00000005 0x3fc9babc 0x3fcafd70 0x42046e4c
3fcc4b00: 0x00000004 0x3c1217cc 0x00000002 0x3c121000 0x00000004 0x00000000 0x3fc97078 0x42046efc
3fcc4b20: 0x00000001 0x3fc9c000 0x3fc939c4 0x4202d7b4 0x00000001 0x3fc9c000 0x3fc939c4 0x3c121000
3fcc4b40: 0x00000001 0x00000004 0x00000003 0x3c121000 0x00000001 0x00000004 0x00000003 0x42047aca
3fcc4b60: 0x00003800 0x3fcbfff8 0x3fc9babc 0x3fc9fff8 0x00000038 0x00000004 0x3fcafd70 0x3fc9ff00
3fcc4b80: 0x00003800 0x3c12d000 0x3c12d000 0x3fc9fff8 0x00003800 0x3fcbfff8 0x3fc9babc 0x42029000
3fcc4ba0: 0x00000000 0x00000001 0x3fc9b000 0x420292c0 0x00000000 0x3fcc4bb0 0x00000000 0x00000000



ELF file SHA256: 9d0cedd548daa278

Rebooting...
ESP-ROM:esp32c3-api1-20210207
Build:Feb  7 2021
rst:0xc (RTC_SW_CPU_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
Saved PC:0x403809ac
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0xe3c
load:0x403ce000,len:0x6f4
load:0x403d0000,len:0x28d8
entry 0x403ce000

@QGB
Copy link
Author

QGB commented Apr 25, 2023

@thirstyone any solution ?

@thirstyone
Copy link

they say, softserial doesn't work in 'loopback' mode :-) try attaching a usb-serial adapter and working from terminal.

@QGB
Copy link
Author

QGB commented Apr 26, 2023

I use the serial connect to other devices. also not work

E (93725) gpio: gpio_install_isr_service(449): GPIO isr service already installed Does this error message matter?

@thirstyone
Copy link

not sure if that error is related to your problem. could be. I suggest that you use a logic analyzer to check what's going on on the bus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants