Problem
I’m getting a core dump on 1.18.2.r4 (v1.8.6). It happens only on cold start (machine.reset()
) triggered by make recycle
. After pulling the plug using warm start (CTRL+D
), the Firmware boots and runs flawlessly (see success below).
Details
Rebooting...
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x13 (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:1
load:0x3fff8028,len:8
load:0x3fff8030,len:1688
load:0x4009fa00,len:0
load:0x4009fa00,len:14592
entry 0x400a059c
[boot.py] INFO: Python module search path is: [\'\', \'/flash\', \'/flash/lib\', \'dist-packages\']
Guru Meditation Error: Core 0 panic\'ed (InstrFetchProhibited)
. Exception was unhandled.
Register dump:
PC : 0x00000000 PS : 0x00060c30 A0 : 0x8011af2d A1 : 0x3ffbd650
A2 : 0x00000000 A3 : 0x00000037 A4 : 0xffffffa2 A5 : 0x3fbc1e24
A6 : 0x00000008 A7 : 0x00000000 A8 : 0x80126208 A9 : 0x3ffbd640
A10 : 0x3fbc1e40 A11 : 0x00000037 A12 : 0xffffffa2 A13 : 0x3ffbd6e4
A14 : 0x7777b137 A15 : 0x7777b137 SAR : 0x00000010 EXCCAUSE: 0x00000014
EXCVADDR: 0x00000000 LBEG : 0x4009b625 LEND : 0x4009b659 LCOUNT : 0xffffffff
Backtrace: 0x00000000:0x3ffbd650 0x4011af2a:0x3ffbd670 0x4011bf37:0x3ffbd740 0x401324d5:0x3ffbd760 0x40134037:0x3ffbd7b0
================= CORE DUMP START =================
/EIAABEAAABsAQAA
WNj7P5DV+z9Q2Ps/
UNb7P/DX+z92S9j9DFP8PwxT/D9Y2Ps/BFP8PwIAAADoUPw/6FD8P1jY+z8AAAAA=
================= CORE DUMP END =================
Rebooting...
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x13 (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:1
load:0x3fff8028,len:8
load:0x3fff8030,len:1688
load:0x4009fa00,len:0
load:0x4009fa00,len:14592
entry 0x400a059c
[boot.py] INFO: Python module search path is: [\'\', \'/flash\', \'/flash/lib\', \'dist-packages\']
3.1999 [terkin.configuration ] INFO : Configuration settings:
3.2139 [terkin.configuration ] INFO : Section "telemetry": {"targets": [{"address": {"node": "node-01-mqtt-json", "gateway": "area-42", "realm": "workbench", "network": "testdrive"}, "enabled": true, "endpoint": "mqtt://daq.example.org"}, {"address": {"node": "node-01-http-json", "gateway": "area-42", "realm": "workbench", "network": "testdrive"}, "enabled": false, "endpoint": "https://daq.example.org/api"}, {"endpoint": "mqtt://daq.example.org", "encode": "base64", "enabled": false, "address": {"node": "node-01-mqtt-lpp", "gateway": "area-42", "realm": "workbench", "network": "testdrive"}, "format": "lpp"}]}
3.2708 [terkin.configuration ] INFO : Section "sensors": {"registry": {"pytrack": {"bus": "i2c:1"}, "waterlevel": {"pin_adc_in": "P18"}, "bme280_1": {"bus": "i2c:1"}, "moisture": {"scaling": 4.096, "pin_adc_in": "P15"}, "ds18x20": {"bus": "onewire:0"}, "hx711": {"offset": 130800.0, "scale": 11.02667, "pin_pdsck": "P21", "pin_dout": "P22"}, "bme280": {"bus": "i2c:0"}}, "busses": [{"pin_scl": "P10", "number": 0, "enabled": true, "family": "i2c", "pin_sda": "P9"}, {"pin_scl": "P21", "number": 1, "enabled": false, "family": "i2c", "pin_sda": "P22"}, {"enabled": true, "pin_data": "P11", "number": 0, "family": "onewire"}]}
3.3276 [terkin.configuration ] INFO : Section "main": {"interval": 1.0}
3.3405 [terkin.configuration ] INFO : Section "networking": {"wifi": {"stations": [{"ssid": "Frau Doktor", "password": "REDACTED"}], "timeout": 15000}, "lora": {"otaa": {"application_key": "<REGISTRATION NEEDED>", "frequency": 868100000, "region": "LoRa.EU868", "datarate": 0, "device_eui": "<GENERATED_FROM_LORA_MAC>", "application_eui": "<REGISTRATION NEEDED>"}, "antenna_attached": false}}
3.3758 [terkin.datalogger ] INFO : Starting BOB MicroPython Datalogger 0.2.1
---------------------------------------------
System memory info (in bytes)
---------------------------------------------
MPTask stack water mark: 6740
ServersTask stack water mark: 976
LoRaTask stack water mark: 1900
SigfoxTask stack water mark: 2928
TimerTask stack water mark: 2172
IdleTask stack water mark: 584
System free heap: 358028
---------------------------------------------
3.4218 [terkin.device ] INFO :
================================
BOB MicroPython Datalogger 0.2.1
================================
CPU freq 160.0 MHz
Device id 807d3ac337b0
Python : 3.4.0
3.4389 [terkin.device ] INFO : Starting networking
4.6001 [terkin.radio ] INFO : WiFi STA: Starting connection
4.6099 [terkin.radio ] INFO : WiFi STA: Scanning for networks
7.1356 [terkin.radio ] INFO : WiFi STA: Available networks: frozenset({\'EasyBox-678090\', \'RUM_nomap\', \'FRITZLE\', \'Fritzle\', \'Gue-Fritz\', \'Frau Doktor Gastzugang\', \'WLAN-KWCZNK\', \'Frau Doktor\', \'o2-WLAN87\', \'Perlaky_HOME\', \'FRITZ!Box 7490\', \'030\', \'o2-WLAN24\'})
7.1591 [terkin.radio ] INFO : WiFi STA: Attempting to connect to network "Frau Doktor"
7.1700 [terkin.radio ] INFO : WiFi STA: Connecting to "Frau Doktor"
7.1885 [terkin.radio ] INFO : WiFi STA: Waiting for network "Frau Doktor".
8.2005 [terkin.radio ] INFO : WiFi STA: Waiting for network "Frau Doktor".
9.2112 [terkin.radio ] INFO : WiFi STA: Waiting for network "Frau Doktor".
10.2223 [terkin.radio ] INFO : WiFi STA: Waiting for network "Frau Doktor".
11.2412 [terkin.radio ] INFO : WiFi STA: Connected to "Frau Doktor" with IP address "192.168.178.58"
11.2586 [terkin.radio ] INFO : WiFi STA: Networking address: mac=b\'\\x80}:\\xc37\\xb0\', ifconfig=(\'192.168.178.58\', \'255.255.255.0\', \'192.168.178.1\', \'192.168.178.1\')
11.2729 [terkin.radio ] INFO : Networking established
11.2863 [terkin.device ] INFO : [LoRa] Disabling LoRa interface as no antenna has been attached. ATTENTION: Running LoRa without antenna will wreck your device.
11.2979 [terkin.device ] INFO : Starting telemetry
17.9774 [terkin.telemetry ] INFO : Telemetry channel URI: mqtt://daq.example.org/workbench/testdrive/area-42/node-01-mqtt-json
17.9871 [terkin.telemetry ] INFO : Starting Terkin TelemetryClient
18.0102 [terkin.datalogger ] INFO : Starting all busses [{\'pin_scl\': \'P10\', \'number\': 0, \'enabled\': True, \'family\': \'i2c\', \'pin_sda\': \'P9\'}, {\'pin_scl\': \'P21\', \'number\': 1, \'enabled\': False, \'family\': \'i2c\', \'pin_sda\': \'P22\'}, {\'enabled\': True, \'pin_data\': \'P11\', \'number\': 0, \'family\': \'onewire\'}]
18.0716 [terkin.sensor ] INFO : Found 0 I2C devices: [].
18.0821 [terkin.sensor ] INFO : Registering bus "i2c:0"
19.8042 [terkin.sensor ] INFO : Found 0 OneWire (DS18x20) devices: [].
19.8158 [terkin.sensor ] INFO : Registering bus "onewire:0"
19.8248 [terkin.datalogger ] INFO : Registering Terkin sensors
19.8337 [hiveeyes.datalogger ] INFO : Registering Hiveeyes sensors
20.4968 [hiveeyes.sensor_hx711 ] INFO : Selected HX711 hardware driver "heisenberg"
20.5068 [hx711 ] INFO : HX711 initialization started
20.5175 [hx711 ] INFO : HX711 initialization succeeded
20.5288 [hx711_heisenberg ] INFO : Gain & initial value set
20.5449 [terkin.sensor ] INFO : Trying to find bus by name "onewire:0"
20.5544 [terkin.sensor ] INFO : Found bus by name "onewire:0": <OneWireBus object at 3f9865d0>
20.5731 [terkin.sensor ] INFO : Trying to find bus by name "i2c:0"
20.5828 [terkin.sensor ] INFO : Found bus by name "i2c:0": <I2CBus object at 3f9860d0>
20.5996 [hiveeyes.sensor_bme280 ] ERROR : BME280 hardware driver failed
Traceback (most recent call last):
File "/flash/lib/hiveeyes/sensor_bme280.py", line 38, in start
File "dist-packages/bme280.py", line 74, in __init__
OSError: I2C bus error
20.6202 [terkin.datalogger ] INFO : --- loop ---
20.6293 [terkin.datalogger ] INFO : Terkin loop
20.7326 [terkin.telemetry ] INFO : Telemetry transport: MQTT over TCP over WiFi
21.3049 [terkin.telemetry ] INFO : Connecting to MQTT broker
'
Traceback (most recent call last):