memory error in picoweb

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
nodepythoner
Posts: 11
Joined: Sat Apr 20, 2019 8:44 am

memory error in picoweb

Post by nodepythoner » Thu May 09, 2019 6:23 pm

all libraries was compiled my mpy-cross and i changed some files in libraries(i added gc.collect lines)
i wrote

Code: Select all

try:
    import picoweb
except MemoryError:
    import micropython
    micropython.mem_info(1)
and i got

Code: Select all

stack: 2864 out of 8192
GC: total: 37952, used: 37856, free: 96
 No. of 1-blocks: 129, 2-blocks: 26, max blk sz: 264, max free sz: 1
GC memory layout; from 3ffeec00:
00000: MDMhhhDMMDDhMhDhB=BBBh===h====hhhhh==h==========================
00400: ================================================================
00800: ================================================================
00c00: ================================================================
01000: =============================================MDSh=hDBABBBBAB=hAh
01400: ===B=hhhB.Shhhh========Sh=hhBMDhh==hh=======h=====h=Shh===h=====
01800: ===hh=h=======h==========h======h========================Sh=====
01c00: ==Sh=h=h=h==h=Sh==h==SSh=Sh==h===h=====SSh=Shh=====hh=SSh=======
02000: hShhh=SSh===============h==hShShShh==========h=hShShShh=========
02400: =h=hShShShSSh======hhShShh==============hh=SSh============hh=Shh
02800: =hh=SDh=BBBBBh=BBBBBB=Bh===h===SSh========h======hh======h======
02c00: =========================h==========h===========h===============
03000: ================================================================
03400: ================================================================
03800: ================================================================
03c00: ========================================================h=======
04000: ===h===h=========h============Th===hh=========h=================
04400: ===h=======h====================.h===============h==============
04800: ========h=======h====h====================h===h=================
04c00: ===========h===============h=====.h=======h================h====
05000: =========================================h===========h==========
05400: ========================================================h=======
05800: ==============.h=======h===.h===================================
05c00: ========================h===h================h==================
06000: ====h===========================================================
06400: ==========h=============h============================h==========
06800: ====================h=h=h==h=========.h===================h=====
06c00: ============h=========h===================h=====================
07000: ==========================h=======h=============================
07400: ================================================================
07800: =======h===================================================h====
07c00: =======h==h=====================================================
08000: ==============h=======h=========================================
08400: ================================================================
08800: ================================================================
08c00: =======h=========h=========h===============h=======h============
09000: ================================================================
09400: ====


nodepythoner
Posts: 11
Joined: Sat Apr 20, 2019 8:44 am

Re: memory error in picoweb

Post by nodepythoner » Mon May 13, 2019 12:44 pm

i think that sockets are more useful

Post Reply