XBee3 build micropython project with pycharm and Digi Xbee plugin

Hi!

I have upgraded both the Xbee3 firmware to the latest (1013) and the Pycharm Community Edition development IDE (2023.2) to the latest that is supported by the newest Digi Xbee plugin (2.1.7).

Setting up a new Digi project mpy-cross.exe is set by default to 1.11.

The problem is that a Xbee3 with the newest firmware are running Micropython 1.20
So when i build the project and upload the main.mpy file I get:

"Loading /flash/main.mpy…
ValueError: incompatible .mpy file

MicroPython v1.20.0-1844-g0266434 on 2023-11-29; XBee3 Zigbee with EFR32MG"

…The Xbee is obviously running 1.20.0 and the comiler 1.11 so I think this is the incompability it reports.

So to try to solve this I updated mpy-cross in pycharm pip to 1.20.0. The update is installed. But the problem then is that every time I push “build” the mpy-cross version automatically reverts to 1.11.
I’m not sure if the Digi Xbee plugin is doing this?

Anyhow, I can’t get past this point. Anyone that have experienced the same?

Best regards, Andreas

@andreastaran I just tested this process of updating my copy of PyCharm to 2023.1.4 Community Edition and the current version of the XBee Plugin. I then created a new project for the XBee 3 Zigbee module running firmware version 1013.

The Digi XBee Plugin version I am using is 2.1.7

I used the top level sample application and I was able to compile, build and run the application without any issues.
soft reboot
Loading /flash/main.mpy…
Running bytecode…
±------------------------------------------+
| XBee MicroPython Connection Status Sample |
±------------------------------------------+

  • AI Changed!
    • New AI: 0x00 (CONNECTED)

MicroPython v1.20.0-1844-g0266434 on 2023-11-29; XBee3 Zigbee with EFR32MG
Type “help()” for more information.