Search found 61 matches
- Tue Sep 24, 2019 2:13 am
- Forum: ESP8266 boards
- Topic: Is there an easy way to expose the value of a #define from mpconfigport.h to Python code?
- Replies: 9
- Views: 6430
Is there an easy way to expose the value of a #define from mpconfigport.h to Python code?
There is #define in mpconfigport.h I want to know the value of in my Python code. I know I can make a new C module to get access I want, but I was hoping there was some easier way.
- Mon Aug 26, 2019 3:10 pm
- Forum: ESP8266 boards
- Topic: Reclaiming last few flakes of RAM - need expert help
- Replies: 6
- Views: 5369
Re: Reclaiming last few flakes of RAM - need expert help
Yup. Just because a thread hasn't been active for 2 years doesn't mean people don't read it. This particular thread has misleading information, and my reply directs people to the correct information.
- Mon Aug 26, 2019 1:51 pm
- Forum: ESP8266 boards
- Topic: What is maximum valid heap size
- Replies: 9
- Views: 7216
Re: What is maximum valid heap size
Cool thanks for the update! I will investigate later why enabling the webrepl code makes a difference. I've gotta ask though, and sorry because I don't want to take away from the excellent work you've done tracking this down, but for the time you've invested in this, it's probably worth upgrading t...
- Mon Aug 26, 2019 6:23 am
- Forum: ESP8266 boards
- Topic: Reclaiming last few flakes of RAM - need expert help
- Replies: 6
- Views: 5369
Re: Reclaiming last few flakes of RAM - need expert help
I have committed a rollup of the changes I made into a fork in our micropython repo https://github.com/micropython/micropython/compare/master...ShrimpingIt:memorymax I attempted these changes to increase availability of storage for frozen modules and for availability of RAM as part of our Avatap pr...
- Mon Aug 26, 2019 6:19 am
- Forum: ESP8266 boards
- Topic: What is maximum valid heap size
- Replies: 9
- Views: 7216
Re: What is maximum valid heap size
I played around disabling some features I didn't need in mpconfigport.h and found several that, when disabled, allowed me to reclaim 8 bytes of BSS space each and found that commenting out the dupterm initialization code in main.c allowed me to gain back 32 bytes of BSS space. The big one to disable...
- Fri Aug 23, 2019 4:17 pm
- Forum: ESP8266 boards
- Topic: What is maximum valid heap size
- Replies: 9
- Views: 7216
Re: What is maximum valid heap size
For others like myself who are unfamiliar with the terms text, data, and bss as they pertain to stack, heap, and general memory layout, here is a good Wikipedia page explaining the relationships: https://en.m.wikipedia.org/wiki/Data_segment
- Wed Aug 21, 2019 2:45 pm
- Forum: ESP8266 boards
- Topic: What is maximum valid heap size
- Replies: 9
- Views: 7216
Re: What is maximum valid heap size
Thanks for the excellent explanation. Is this info in some hidden document or have you just surmised all of this through experimentation and code examination?
- Wed Aug 21, 2019 2:42 pm
- Forum: ESP8266 boards
- Topic: Unexpected __slots__ behavior
- Replies: 5
- Views: 3630
Re: Unexpected __slots__ behavior
Sorry, my confusion came from two things. First, the documentation here mentions slots twice saying: MicroPython doesn’t maintain symbolic local environment, it is optimized to an array of slots Maybe the "slots" being referred to isn't the same as "__slots__"? Second, I incorrectly assumed the chan...
- Wed Aug 21, 2019 1:13 am
- Forum: ESP8266 boards
- Topic: Adafruit Feather Huzzah esp8266 not running MicroPython
- Replies: 9
- Views: 5290
Re: Adafruit Feather Huzzah esp8266 not running MicroPython
The speed in your putty config looks correct, but every time I've seen the writings of Cthulhu in a terminal when attempting a serial connection it was because I had the speed wrong.
- Wed Aug 21, 2019 1:11 am
- Forum: ESP8266 boards
- Topic: What is maximum valid heap size
- Replies: 9
- Views: 7216
Re: What is maximum valid heap size
I'm fairly sure the heap is fine tuned to match the available RAM of the target device, leaving enough space for stack, data, bss, etc. I'm less familiar with the non-STM32 ports (i.e. ESP*) which use an rtos. But I suspect the issues you're seeing are memory corruption (stack and bss) by overrunni...