Replies: 2 comments 5 replies
-
Any use of filemap will result in all the imported files getting linked into the binary, not just the one you've selected. Try this:
|
Beta Was this translation helpful? Give feedback.
-
Sorting out memory usage issues like this would normally involve tools like
You could do a 'before and after' comparison (using kdiff3 or something) but it would need a little massaging as addresses would all be different and you'd need to compare by object name. Anyway, problem here is that
If you're able to build for Host, then you can use:
Since the problem is likely to be in generic code (not specific to the esp8266), then this might suffice. |
Beta Was this translation helpful? Give feedback.
-
so I've moved all configuration access over to ConfigDB and am trying to get the app working.
Part of that was, as indicated earlier, to include the default config in the delivered image.
This is where I import files:
and as long as I do that, it compiles file, with the following memory layout:
In my application.cpp, I have this code to intialize the db:
and the compile result is with those two lines commented out.
As soon as I remove the // from the first line, I run out of irom0 space:
How do I get from ~120kB free to missing 120kB just by instantiating this file as a stream? The config file is around 8kB
thinking about it a bit later:
since it's a define, the file itself will ony get inserted in the build once it's used, right? So it would be expected to use up more space, but that much more?
checking a bit deeper -
according to my hardware config, my irom0 should be 1016kB in size, hwconfig-edit also shows 121.5kB free when not using the default_config.json
Not sure I understand what's goign on here
Beta Was this translation helpful? Give feedback.
All reactions