Comments (6)
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.
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.
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.
Ok, many thanks for the fast answer :) .
from platform-apollo3blue.
Hi @jerabaul29,
I have pushed the update.
Give it a go and let me know how you go.
from platform-apollo3blue.
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)
- brainstorming: releasing as a "all-parts-included", "turn-key" container? HOT 6
- attempting to compile compiles but also tries to upload (and fails if no board available) HOT 3
- caching of compilation? HOT 2
- unity unit test framework not recognized HOT 3
- brainstorming: how would you recommend to compile / "install" an external non arduino library HOT 5
- Inconsistent Boards Names
- The solution to the lack of ‘tool-jlink’ after the Manual installation of Sparkfun/Arduino_Apollo3 on MacOS 10.12.6. HOT 1
- Error building any application with artemis boards HOT 9
- Build with custom linker script fails when project directory has a space
- Libraries in lib/ are not included in build process HOT 2
- new warning: "No baud rate specified. Using default svl baud rate of 921600" HOT 4
- Cannot build for boards that are not in boards-sfe HOT 6
- Add ability to set swo clock in swo viewer HOT 3
- Some dependency issues with the libraries HOT 4
- bug: strange include failure for /lib code HOT 2
- Make BOARD_VARIANTS_DIR customizable HOT 2
- Build fails in PlatformIO HOT 5
- Missing headers for Edge & Edge 2 with Ambiq HOT 1
- How to set -Os instead of default -O0? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from platform-apollo3blue.