Search found 12 matches
- Fri Jan 14, 2022 11:31 am
- Forum: ESP32 boards
- Topic: [SOLVED] Strange Micropython Code Execution (ESP32) due to old xtensa compiler
- Replies: 7
- Views: 21569
Re: Strange Micropython Code Execution With Custom (But Unused) C-Code
Thank you very much Roberthh for your reply! That could indeed have been a problem, there is not too much space left for custom code. Fortunately, I checked that already before. Also, it appears in versions with binary size around 1.6M and around 1.9M. Most interestingly, it is always like that: the...
- Wed Jan 12, 2022 2:16 pm
- Forum: ESP32 boards
- Topic: [SOLVED] Strange Micropython Code Execution (ESP32) due to old xtensa compiler
- Replies: 7
- Views: 21569
Re: Strange Micropython Code Execution With Custom (But Unused) C-Code
Update: There was a misunderstinge between the other person and me. So the binary that did produce the strange execution behaviour was actually compiled on a (third) different machine, which had the xtensa compiler version 1.22.0-80 installed. The versions that worked fine were built with 1.22.0-98,...
- Tue Jan 11, 2022 7:42 am
- Forum: ESP32 boards
- Topic: [SOLVED] Strange Micropython Code Execution (ESP32) due to old xtensa compiler
- Replies: 7
- Views: 21569
Re: Strange Micropython Code Execution With Custom (But Unused) C-Code
OK now I am lost and hopefully someone can put me in the right direction or has a hint about this. I compiled the untouched pycom 1.20.2.r6 with custom Python code under esp32/frozen/Custom. No submodules involved there. The version I compiled (Ubuntu Mate VM 21.10, GCC 11.2.0) shows the strange err...
- Fri Jan 07, 2022 12:21 pm
- Forum: ESP32 boards
- Topic: [SOLVED] Strange Micropython Code Execution (ESP32) due to old xtensa compiler
- Replies: 7
- Views: 21569
Re: Strange Micropython Code Execution With Custom (But Unused) C-Code
Some new insights: Those erros can also occur after a freshly cloned pycom 1.20.2.r6 version without Bluetooth and CAN without any custom C code with frozen Python code but we also have compiled versions with 1.20.2.r6 that work without those errors. It does not seem to matter if Python code to be f...
- Tue Dec 21, 2021 9:32 am
- Forum: ESP32 boards
- Topic: [SOLVED] Strange Micropython Code Execution (ESP32) due to old xtensa compiler
- Replies: 7
- Views: 21569
Re: Strange Micropython Code Execution With Custom (But Unused) C-Code
Hi pythoncoder,
thanks for your fast reply! So do you think, that this might be more of a Pycom/ESP32 specific problem, than something that is related to Micropython itself?
thanks for your fast reply! So do you think, that this might be more of a Pycom/ESP32 specific problem, than something that is related to Micropython itself?
- Fri Dec 17, 2021 5:22 pm
- Forum: ESP32 boards
- Topic: [SOLVED] Strange Micropython Code Execution (ESP32) due to old xtensa compiler
- Replies: 7
- Views: 21569
[SOLVED] Strange Micropython Code Execution (ESP32) due to old xtensa compiler
Dear community, since a certain stage of commits in our development, we are facing strange errors: at seemingly random times, some of the try/except sections catch something like this: First type of error: Reason: unsupported types for __lt__: 'NoneType', 'int' Reason: unsupported types for __truedi...
- Tue Jul 06, 2021 11:51 am
- Forum: General Discussion and Questions
- Topic: [Solved] Native C: ESP32 core panic accessing dict after change
- Replies: 4
- Views: 2614
Re: Native C: ESP32 core panic accessing dict after change
Hi jimmo, thanks again a million for your suggestions and help! Yes, you are correct: I am using PyCom's MicroPython for my tests. I will try to test this again with a current version of MicroPython. I notice your code iterates from 0 to map->used -- unless they're ordered dicts, this won't work. Yo...
- Tue Jul 06, 2021 11:42 am
- Forum: General Discussion and Questions
- Topic: Native C: ESP32 core panic with µPython callback in task
- Replies: 2
- Views: 2174
Re: Native C: ESP32 core panic with µPython callback in task
Hi jimmo, thank you very much for your reply! Yes, MicroPython is the one from the PyCom fork. I supposed that PyComs µPython version might not be very up to date...but it seemed to me that the issues I am facing rather come from a wrong approach on my side. dict to json should already be implemente...
- Mon Jul 05, 2021 9:10 am
- Forum: General Discussion and Questions
- Topic: [Solved] Native C: ESP32 core panic accessing dict after change
- Replies: 4
- Views: 2614
Re: Native C: ESP32 core panic accessing dict after change
Another update: I now skipped tabel entries, where table[ i ].key/value == NULL. Now I can repeat the key/value append test multiple times. This is what I observe: add new key value pair: JSON = {"key_string":"value1","test0":"value0"}. Key/Index Pointer of nested dict = NULL, index of nested dict m...
- Mon Jul 05, 2021 7:44 am
- Forum: General Discussion and Questions
- Topic: [Solved] Native C: ESP32 core panic accessing dict after change
- Replies: 4
- Views: 2614
Re: Native C: ESP32 core panic accessing dict after change
I did some additional tests. My original assumption was slightly wrong: The core dump seems to happen not when accessing the newly added key, but the one that got moved one in index higher. I printed out the addresses of the entries like this: for (int i = 0; i < map->used; i++) { printf("table entr...