Could you first try to use the latest firmware (1.20.2.r4) and let us know. Also I recommend to create a separate thread for your issue instead of adding onto a CAT-M1 modem firmware thread :), just to keep things separate
Sorry im not exactly sure what you're after. You mean that not all files in Pymakr online update when you click the refresh button? Are there any changes to the files in the meantime that do not get synced?
@Gijs A more serious problem is with some of the chips we have problems with the software crashing. Some chips will run for weeks without restarting. Others have random crashes like the one below. We have tried many different versions of the OS and modem firmware trying to isolate the problem. The one version that we have had better luck with is an older version:
Pycom MicroPython V1.20.0.rc13
Modem firmware UE22.214.171.124f, LR126.96.36.199-41065
Even that version will crash on some of the chips.
** check for modem ready
check signal strength
modem command: AT+CSQ
modem response: ['+CSQ: 25,99', 'OK']
signal strength = 25
modGuru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x4010e415 PS : 0x00060a30 A0 : 0x00006325 A1 : 0x3ffddec0
A2 : 0xe80ec000 A3 : 0x00000000 A4 : 0x3f40600c A5 : 0x00000001
A6 : 0x00ff0000 A7 : 0xff000000 A8 : 0x40d0e894 A9 : 0x3ffddeb0
A10 : 0x00000001 A11 : 0x00d309a4 A12 : 0x3ffd5a38 A13 : 0x00000001
A14 : 0x000000fe A15 : 0x00060023 SAR : 0x00000000 EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000011 LBEG : 0x4009c401 LEND : 0x4009c417 LCOUNT : 0xfffffffb
Backtrace: 0x4010e415:0x3ffddec0 0x00006322:0x3ffddef0
================= CORE DUMP START =================
I would be interested in anyone giving ideas on how to isolate and fix such random crashes. The same program and OS and modem firmware will run on some chips for days without crashing. On other chips the problem happens within minutes/hours. The reason for the crash varies. Sometimes for instance it reports an illegal instruction error. On newer versions of the OS and modem firmware the problems happen much more frequently.
Has anyone tried writing some type of memory diagnostic for the GPy to stress test the system?
Would it help if I purchased an ESP-PROG debugger and tried to learn how to compile and debug the OS?
Has anyone tried developing C/C++ code using the Espressif SDK on the GPy? What has been your experience?
Since our code talks directly to the modem and we do not use the LTE() module, we have a better chance of converting our code to C++. The SDK serial and i2c routines look like they would work fine. It looks like it would take special code to control the LED. We also use the file system to store JSON files and this might require some work in C++.
I would much rather try to make Pycom's MicroPython reliable if that is an option.
Troubleshooting ideas are welcome. I'm just looking for a solution.
@Dylan as @Gijs wrote, it’s obvious from the output that the module didn’t connect to the WLAN.
What is weird is that even when it works you don’t have the Network found! output. Are you running the same code on both?
If the first log comes from a device actually running the code you gave, it means it didn’t find the network. Try logging all networks found to check for a typo of some sort, or loop around scan (with a small sleep) until you find it.
That diagnostic seems to reference VisualStudio rather than Atom. The pymakr plugins for VS & Atom are different as far as I know, are you sure you have the right one?
As far as Atom goes you probably need to roll back. https://forum.pycom.io/topic/6970/pymakr-not-compatible-with-atom-1-56/7
Hi, is it possible to use pygate with raw lora, for example to setup multiple asynchronous sockets with different channel parameters where i can use some for receiveing and others for transmitting data?