-
• #2
Did you try to change number of vars ?
For the case that we have an heap overflow because of graphics -
• #3
in file ESP8266_BOARD.py ?
-
• #4
That's the only place I know, but I'm not an expert.
As far as I understand the py file is used during make to create some sources in /gen -
• #5
Yes - the
py
file determines how much RAM gets used for variables - be sure tomake clean
though - just in case :) -
• #6
@tve I was trying to think of why all the RAM would disappear when the graphics library got included. It'll be the bitmap and vector fonts - specifically:
- https://github.com/espruino/Espruino/blob/master/libs/graphics/bitmap_font_3x5.c
- https://github.com/espruino/Espruino/blob/master/libs/graphics/vector_font.h
Could we maybe have a
READ_CONST_UINT8
macro that we can use when accessing data that we think might be in flash memory? On ARM it could default to a normal access, but on ESP8266 it could load 32 bits and shift to get the right byte.It'd simplify the whole
memoryArea
thing too. - https://github.com/espruino/Espruino/blob/master/libs/graphics/bitmap_font_3x5.c
-
• #7
peek8 and peek16, both are not running on flash for ESP8266
peek32 works fine
Would we need a solution for both cases ? -
• #8
I suppose so - we'd need READ_CONST_UINT8 and READ_CONST_UINT16.
Is someone getting a valid build for USE_GRAPHICS=1 ?
mine is lost in reset loops...