pycom / pycom-micropython-sigfox

A fork of MicroPython with the ESP32 port customized to run on Pycom's IoT multi-network modules.
MIT License
198 stars 167 forks source link

Strange Micropython Code Execution With Xtensa Compiler 1.22.0-80 #584

Open x4t-de opened 2 years ago

x4t-de commented 2 years ago

Please include the following information when submitting a bug report:

Reason: unsupported types for __lt__: 'NoneType', 'int'
Reason: unsupported types for __truediv__: 'float', 'function'
Reason: unsupported types for __lt__: 'NoneType', 'int'
Reason: unsupported type for __hash__: 'dict'

see also error search history where members in Micropython provided some help.

https://forum.micropython.org/viewtopic.php?f=18&t=11653&p=63392#p63392 https://forum.pycom.io/topic/7408/strange-micropython-code-execution-with-custom-but-unused-c-code

seems to be solvable by using a newer version of xtensa compiler (1.22.0-98). ESP download page points to an even newer version. GCC version did not matter, 10.3.0 and 11.2.0 produced same binaries devices did not matter, appeared on all devices used, and disappeared when using newer compiler. source code size and version did not matter, appeared on several versions

So, it could be worth updating the download link to a newer compiler.