We are trying to run /flash/main.mpy file using STM32 microcontroller by using CTRL+R command and we are getting below error that is shown in our buffer.
ValueError: incompatible .mpy file
kindly provide the resolution for the error.
We are using the latest firmware for XBEE3 module and version-4 for micropython.
The MicroPython REPL banner (which starts with e.g. “MicroPython v1.12-xxxx-gxxxxxxx”) can tell you which MicroPython release version is used on the XBee.
You mention that you are using “version 4” of MicroPython. According to http://docs.micropython.org/en/v1.12/reference/mpyfiles.html , MicroPython v1.12 uses bytecode version 5. (You can also confirm this on v1.12, by checking the last field in sys.implementation).