dev build free memory

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
arion_p
Normal user
Posts: 24
Joined: 05 Mar 2018, 22:02

dev build free memory

#1 Post by arion_p » 25 Apr 2018, 01:13

I just updated my local git repo from upstream (24-04-2018) and rebuild an new firmware. Now I get around 6500 bytes free RAM!

Is this normal? is free RAM so low on recent (official) dev builds or am I doing something wrong?

Thanks in advance.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: dev build free memory

#2 Post by grovkillen » 25 Apr 2018, 06:05

Yes, latest core do not give much free memory left. But are you in need of the Dev version for your project?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

arion_p
Normal user
Posts: 24
Joined: 05 Mar 2018, 22:02

Re: dev build free memory

#3 Post by arion_p » 25 Apr 2018, 09:01

Well, yes and no.

My main project only needs P115 HeatpumpIR. With the recent changes I can now create a custom plugin set to include P115 (and probably exclude some plugins that I won't need).

The other thing I'm currently working on is a rules compiler. The rules are being compiled on the browser into bytecode (the compiler is written in javascript) and posted to the device along with the source code. Then the device can execute the bytecode using a simple stack-based VM. The benefit is (hopefully) faster rules execution, complex arithmetic and boolean expressions, nested if-then-else and more.

Obviously this needs to be able to work with any and all plugins. My worry now is that there might not be enough memory for the VM to run.

TD-er
Core team member
Posts: 8752
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: dev build free memory

#4 Post by TD-er » 25 Apr 2018, 19:04

We will switch back to core 2.3.0, so there will be some more free memory.
And I have some ideas to free up some more memory. But that may take some time.

arion_p
Normal user
Posts: 24
Joined: 05 Mar 2018, 22:02

Re: dev build free memory

#5 Post by arion_p » 25 Apr 2018, 22:44

Just did a build with only stable plugins + p115 + my own (based on MQTT Import) and got ~10K free RAM. Switching to 2.3.0 core added another 3.5K free RAM.

hryst
New user
Posts: 3
Joined: 02 Feb 2017, 15:15

Re: dev build free memory

#6 Post by hryst » 01 Aug 2018, 15:19

arion_p wrote: 25 Apr 2018, 22:44 Switching to 2.3.0 core added another 3.5K free RAM.
Hello
can you share me compiled file with p115
thx

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 90 guests