Hello,
I am following the Digi Micropython Programming guide documentation to setup my development environment with PyCharm IDE and the Digi XBee plugin.
The setup works great and I was able to create a project, add some code and have the IDE flash the connected module.
However when the code runs, I get the following error on the terminal:
MicroPython v1.11-1227-g52e306b on 2019-07-10; XBee3 Zigbee with EFR32MG
Type “help()” for more information.
>>>
Loading /flash/main.mpy…
ValueError: incompatible .mpy file
If I download the same code directly from the terminal using (CTRL+F / CRTL+D) and then run it using CTRL+R
then it executes the mpy just fine.
I am using PyCharm version 2019.1.3 and Xbee plugin Version 1.0.1 (June 2019). The Xbee3 Zigbee module I am using is on f/w 1007
I am suspecting that the plugin is using a version of the cross-compiler that is not compatible with the micropython installed on the module, but I have no idea how/where I can change the cross-compiler.
Any help is appreciated. The PyCharm IDE + Plugin is quite amazing to use and this is really the only problem right now to get a full development environment setup.
Thanks,
Amir.