pycom / pycom-libraries

MicroPython libraries and examples that work out of the box on Pycom's IoT modules
331 stars 377 forks source link

LoRaWAN Nano Gateway Crashes #27

Closed aizukanne closed 6 years ago

aizukanne commented 7 years ago

Hi,

I implemented the LoRaWan nanogateway. It works but keeps crashing and restarting at intervals with the following error message after what looks like a long hex dump.

`Guru Meditation Error of type LoadProhibited occurred on core 0. Exception was unhandled. Register dump: PC : 0x400879fd PS : 0x00060033 A0 : 0x80088f97 A1 : 0x3ffe37a0 A2 : 0x3ffe3800 A3 : 0x3ffe37d0 A4 : 0x00000020 A5 : 0x3ffc48b8 A6 : 0x00001182 A7 : 0x3ffe3da0 A8 : 0x3ff40000 A9 : 0x0000007d A10 : 0x00000002 A11 : 0x3ffe3bb0 A12 : 0x8008b2f8 A13 : 0x3ffe3ba0 A14 : 0x3ffe3bd0 A15 : 0x00000020 SAR : 0x00000012 EXCCAUSE: 0x0000001c EXCVADDR: 0x00001186 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0x00000000

Backtrace: 0x400879f▒ets Jun 8 2016 00:22:57`

Any help solving this would be appreciated.

A. Izukanne

danicampora commented 7 years ago

Hello @aizukanne what firmware version are you running on the LoPy?

aizukanne commented 7 years ago

Hello, Firmware version is 1.7.9.b3 Terminal shows MicroPython v1.8.6-747-gc4ec6110.

aizukanne commented 7 years ago

Hello @danicampora

When I decoded the exception, this is what I got from the first Backtrace

Decoding 6 results 0x400d9410: esp_task_wdt_init at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/esp32/./task_wdt.c line 199 0x400d991d: ieee80211_hostap_attach at ?? line ? 0x400d9b53: wifi_softap_start at ?? line ? 0x400d8c4c: get_desc_for_int at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/esp32/./intr_alloc.c line 626

danicampora commented 7 years ago

@aizukanne are you using a LoPy OEM?

aizukanne commented 7 years ago

@danicampora No I am not. I installed on an ESP32 with RFM95 connected as shown in the the LoPy PINOUT diagram.

danicampora commented 7 years ago

OK I see... The crash reports shows that the issues are in the WiFi and BT Phy functions. Maybe a power supply problem, or an antenna matching issue.

aizukanne commented 7 years ago

@danicampora Thanks. I am using the built-in antenna. Power is from USB. Is it possible to disable BT?

Also I notice the time stamp on the packets sent to the server is incorrect. Seems NTP is not being set. Could this also cause the problem?

caseyrodgers commented 6 years ago

Did you ever find a solution to this? I'm having the same issue.

I'm using a LoPy4 with firmware 1.15.0.b1.

aizukanne commented 6 years ago

Yes, I found out the script I was using was incomplete. I downloaded a more recent version and everything or almost everything worked like a charm.

I said almost cos I couldn't get OTAA to work, probably cos I had a different LoRa model.

danspndl commented 6 years ago

Hi @caseyrodgers, I'll close this issue, but if you're still having problems, feel free to reopen it and add more details. Thanks!