Search found 60 matches

by manseekingknowledge
Mon Aug 26, 2019 3:10 pm
Forum: ESP8266 boards
Topic: Reclaiming last few flakes of RAM - need expert help
Replies: 6
Views: 1751

Re: Reclaiming last few flakes of RAM - need expert help

kevinkk525 wrote:
Mon Aug 26, 2019 2:21 pm
You are answering a 2 year old post...
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.
by manseekingknowledge
Mon Aug 26, 2019 1:51 pm
Forum: ESP8266 boards
Topic: What is maximum valid heap size
Replies: 9
Views: 485

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...
by manseekingknowledge
Mon Aug 26, 2019 6:23 am
Forum: ESP8266 boards
Topic: Reclaiming last few flakes of RAM - need expert help
Replies: 6
Views: 1751

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...
by manseekingknowledge
Mon Aug 26, 2019 6:19 am
Forum: ESP8266 boards
Topic: What is maximum valid heap size
Replies: 9
Views: 485

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...
by manseekingknowledge
Fri Aug 23, 2019 4:17 pm
Forum: ESP8266 boards
Topic: What is maximum valid heap size
Replies: 9
Views: 485

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
by manseekingknowledge
Wed Aug 21, 2019 2:45 pm
Forum: ESP8266 boards
Topic: What is maximum valid heap size
Replies: 9
Views: 485

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?
by manseekingknowledge
Wed Aug 21, 2019 2:42 pm
Forum: ESP8266 boards
Topic: Unexpected __slots__ behavior
Replies: 5
Views: 288

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...
by manseekingknowledge
Wed Aug 21, 2019 1:13 am
Forum: ESP8266 boards
Topic: Adafruit Feather Huzzah esp8266 not running MicroPython
Replies: 9
Views: 381

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.
by manseekingknowledge
Wed Aug 21, 2019 1:11 am
Forum: ESP8266 boards
Topic: What is maximum valid heap size
Replies: 9
Views: 485

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...
by manseekingknowledge
Wed Aug 21, 2019 1:02 am
Forum: ESP8266 boards
Topic: Unexpected __slots__ behavior
Replies: 5
Views: 288

Re: Unexpected __slots__ behavior

pythoncoder wrote:
Sat Aug 03, 2019 6:19 am
This has been discussed here. As far as I can see it hasn't been implemented in the official build (unfortunately).
If using __slots__ doesn't prevent __dict__ from being created for an instance of a class, is there any benefit to using them?