Giter Site home page Giter Site logo

Comments (6)

jerabaul29 avatar jerabaul29 commented on August 18, 2024

Mmh, I think that this high memory use looks like what I would expect with the RTOS, not the barebone. Weird, I thought I had followed the correct steps for a "barebone core installation". Seems like some older core v1 installs were giving right memory, see for example use: #28 .

from platform-apollo3blue.

jerabaul29 avatar jerabaul29 commented on August 18, 2024

Mmmh, actually looks like the issue #28 screenshots using less RAM were actually with core v2, which is really strange; the core v2 should actually use a lot more RAM than the bare metal core v1.

from platform-apollo3blue.

nigelb avatar nigelb commented on August 18, 2024

Hi @jerabaul29,

I think this may be a bug that I fixed yesterday but haven't pushed.
When I fixed #15, the fix did not make it into the core v1 builder.
So it may not be reporting the correct sizes.

I just ran a test now with the following platformio.ini:

[env:SparkFun_RedBoard_Artemis_ATP]
platform = apollo3blue
board = SparkFun_RedBoard_Artemis_ATP
framework = arduino
platform_packages = [email protected]
build_type=release

and src/main.cpp:

void setup(){}
void loop(){}

with the output:

.
.
.
arm-none-eabi-objcopy -O binary .pio/build/SparkFun_RedBoard_Artemis_ATP/program .pio/build/SparkFun_RedBoard_Artemis_ATP/firmware.bin
MethodWrapper(["checkprogsize"], [".pio/build/SparkFun_RedBoard_Artemis_ATP/program"])
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [          ]   0.0% (used 4 bytes from 393216 bytes)
Flash: [          ]   0.1% (used 988 bytes from 983040 bytes)
.pio/build/SparkFun_RedBoard_Artemis_ATP/program  :
section             size        addr
.text                988       65536
.stack             81920   268435456
.data                  0   268517376
.bss                   4   268517376
.ARM.attributes       52           0
.debug_info       119050           0
.debug_abbrev       9336           0
.debug_aranges       936           0
.debug_ranges       1136           0
.debug_line        19634           0
.debug_str         37853           0
.comment             102           0
.debug_frame        2096           0
.debug_loc          8362           0
Total             281469

However, when I disable the fix I get:

.
.
.
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [==        ]  20.8% (used 81924 bytes from 393216 bytes)
Flash: [          ]   0.1% (used 988 bytes from 983040 bytes)
text	   data	    bss	    dec	    hex	filename
    988	      0	  81924	  82912	  143e0	.pio/build/SparkFun_RedBoard_Artemis_ATP/program

Which matched what you are seeing.
I want to finish some more tests before I push these changes, but is won't take too long.

from platform-apollo3blue.

jerabaul29 avatar jerabaul29 commented on August 18, 2024

Ok, many thanks for the fast answer :) .

from platform-apollo3blue.

nigelb avatar nigelb commented on August 18, 2024

Hi @jerabaul29,

I have pushed the update.
Give it a go and let me know how you go.

from platform-apollo3blue.

jerabaul29 avatar jerabaul29 commented on August 18, 2024

Yes, pulled main now, all looks good, the memory is reported as 4 bytes of RAM and 988 bytes of Flash, as expected :) . Feel free to close :) . Many thanks again :) .

from platform-apollo3blue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.