m5stack / M5Cloud

Micropython Web IDE beta version
http://io.m5stack.com/
145 stars 34 forks source link

Crash on initialize UART #37

Closed key closed 5 years ago

key commented 5 years ago

Hello

I tested m5cluod firmware with micropython. The device crashed when initializing UART. Reproduce this issue in different firmware that are m5cloud-psram-20180419-v0.3.9.bin and m5cloud-psram-20180516-v0.4.0.bin.

Hardware: M5Stack Fire GPS: M5Stack GPS module

MicroPython ESP32_LoBo_v3.2.11 - 2018-04-16 on M5Stack with ESP32
Type "help()" for more information.
>>> UART(2, tx=17, rx=16)
UART(2, baudrate=115942, bits=8, parity=None, stop=1, tx=17, rx=16, rts=-1, cts=-1, timeout=0, buf_size=512, lineend=b'\r\n')
     Event task minimum free stack: 560
>>> Guru Meditation Error: Core  1 panic'ed (StoreProhibited)
. Exception was unhandled.
Core 1 register dump:
PC      : 0x4008fa45  PS      : 0x00060733  A0      : 0x8008f14a  A1      : 0x3ffd3310
A2      : 0x0000004d  A3      : 0x00060720  A4      : 0x00000001  A5      : 0x0000abab
A6      : 0xb33fffff  A7      : 0x00000000  A8      : 0x0000cdcd  A9      : 0x3ffd3310
A10     : 0x0000abab  A11     : 0x00060723  A12     : 0x00060720  A13     : 0x3f4050f2
A14     : 0x000000fe  A15     : 0x00000001  SAR     : 0x00000018  EXCCAUSE: 0x0000001d
EXCVADDR: 0x0000004d  LBEG    : 0x40098398  LEND    : 0x400983a3  LCOUNT  : 0x00000000

Backtrace: 0x4008fa45:0x3ffd3310 0x4008f147:0x3ffd3340 0x400ffdfe:0x3ffd3380

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

rst:0xc (SW_CPU_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, 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:0x3fff0018,len:4
load:0x3fff001c,len:4648
load:0x40078000,len:0
ho 12 tail 0 room 4
load:0x40078000,len:12144
entry 0x40078e0c

Internal FS (SPIFFS): Mounted on partition 'internalfs' [size: 2293760; Flash address: 0x1D0000]
----------------
Filesystem size: 2100992 B
           Used: 35072 B
           Free: 2065920 B
----------------

Device ID:840d8e258fe0
I (1909) wifi: wifi firmware version: 2fc15c0
I (1909) wifi: config NVS flash: enabled
I (1909) wifi: config nano formating: disabled
I (1919) wifi: Init dynamic tx buffer num: 16
I (1919) wifi: Init data frame dynamic rx buffer num: 16
I (1919) wifi: Init management frame dynamic rx buffer num: 16
I (1923) wifi: wifi driver task: 3ffc9c3c, prio:23, stack:4096
I (1928) wifi: Init static rx buffer num: 8
I (1932) wifi: Init dynamic rx buffer num: 16
I (5214) wifi: mode : sta (84:0d:8e:25:8f:e0)
Connect WiFi: SSID:XXXXXX PASSWD:XXXXXXXXX network...
I (5380) wifi: n:1 0, o:1 0, ap:255 255, sta:1 0, prof:1
.I (6066) wifi: state: init -> auth (b0)
I (6070) wifi: state: auth -> assoc (0)
I (6075) wifi: state: assoc -> run (10)
I (6090) wifi: connected with tsumug, channel 1
I (6091) wifi: pm start, type: 1

...
Connected. Network config: ('192.168.180.21', '255.255.255.0', '192.168.180.1', '118.238.201.33')
Synchronize time from NTP server ...
Traceback (most recent call last):
  File "main.py", line 14, in <module>
NameError: name 'uart2' is not defined

FreeRTOS running on BOTH CORES, MicroPython task started on App Core.
Running from Factory partition starting at 0x10000, [MicroPython].

 Reset reason: Soft CPU reset
    uPY stack: 19456 bytes
     uPY heap: 3073664/29888/3043776 bytes (in SPIRAM using heap_caps_malloc)

MicroPython ESP32_LoBo_v3.2.11 - 2018-04-16 on M5Stack with ESP32
Type "help()" for more information.
key commented 5 years ago

I have investigated this issue. M5Stack Fire will crash when uses PSRAM with GPS module. That was conflicts PIN GPIO 16 and 17.

It's NOT firmware issue, sorry!

nuquerna commented 3 years ago

i have this issue with core2!