QUERY · ISSUE
FreezeError("unable to freeze code with relocations") with frozen code
bug
Port, board and/or hardware
ESP32
MicroPython version
Hi,
I'd like to include frozen files from emlearn, https://github.com/emlearn/emlearn-micropython/tree/gh-pages/builds/0.7.0/xtensawin_6.3, to my build, but it reports FreezeError("unable to freeze code with relocations")
My command in manifest file is: freeze_mpy("$(PORT_DIR)/modules_mpy/emlearn")
The frozen codes from emlearn are compatible with MicroPython 1.24.
My custom build based on MicroPython 1.24.1, ESP32S3
Reproduction
- Add command to the main manifest file:
freeze_mpy("$(PORT_DIR)/modules_mpy/emlearn") - Copy all files .mpy from the link https://github.com/emlearn/emlearn-micropython/tree/gh-pages/builds/0.7.0/xtensawin_6.3 to directory
$(PORT_DIR)/modules_mpy/emlearn/ - Then build the port.
Expected behaviour
Successfully built frozen code to MicroPython firmware.
Observed behaviour
FreezeError("unable to freeze code with relocations")
Additional Information
No, I've provided everything above.
Code of Conduct
Yes, I agree
CANDIDATE · ISSUE
Unable to freeze modules for PyBoard
I've added modules dir with files to freeze, launched make command... and there is nothing frozen.