Skip to content

V5 arduino size - print error #1714

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
uzi18 opened this issue Feb 18, 2025 · 4 comments
Open

V5 arduino size - print error #1714

uzi18 opened this issue Feb 18, 2025 · 4 comments

Comments

@uzi18
Copy link
Contributor

uzi18 commented Feb 18, 2025

From console log:

Printing size:: gajgery.size
"/home/users/a/sloeber/V5_64bit/arduinoPlugin/packages/esp32/tools/esp-x32/2405/bin/xtensa-esp32s3-elf-size" -A "/home/users/a/Documents/sloeber-workspace_v5/gajgery/bin/Release/gajgery.elf" | "awk" -f size.awk
/home/users/a/Documents/sloeber-workspace_v5/gajgery/bin/Release/gajgery.elf  :
section                  size         addr
.rtc.text                 256   1611653120
.rtc.force_fast             0   1611653376
.rtc_noinit                 0   1342177792
.rtc.force_slow             0   1342177792
.rtc_reserved              40   1611661272
.iram0.vectors           1027   1077362688
.iram0.text             71375   1077363716
.dram0.dummy            56064   1070104576
.dram0.data             13936   1070160640
.noinit                     0   1070174576
.dram0.bss              60832   1070174576
.flash.text            267914   1107296288
.flash_rodata_dummy    327680   1006632992
.flash.appdesc            256   1006960672
.flash.rodata          254640   1006960928
.ext_ram.dummy         589792   1006632992
.iram0.text_end            45   1077435091
.iram0.data                 0   1077435136
.iram0.bss                  0   1077435136
.dram0.heap_start           0   1070235408
.debug_aranges          45160            0
.debug_info           3898979            0
.debug_abbrev          364922            0
.debug_line           1899534            0
.debug_frame           115552            0
.debug_str             501744            0
.debug_loc             731300            0
.debug_ranges           98400            0
.debug_line_str         15130            0
.debug_loclists        124910            0
.debug_rnglists         10092            0
.comment                  143            0
.xtensa.info               56            0
.xt.prop                 4200            0
.xt.lit                   120            0
/home/users/a/sloeber/V5_64bit/arduinoPlugin/packages/esp32/tools/esp-x32/2405/bin/xtensa-esp-elf-size: '|': No such file
/home/users/a/sloeber/V5_64bit/arduinoPlugin/packages/esp32/tools/esp-x32/2405/bin/xtensa-esp-elf-size: 'awk': No such file
Total                 9454099


/home/users/a/sloeber/V5_64bit/arduinoPlugin/packages/esp32/tools/esp-x32/2405/bin/xtensa-esp-elf-size: size.awk: file format not recognized

05:19:51 Build Finished. 0 errors, 0 warnings. (took 3s.476ms)

manually:

 "/home/users/a/sloeber/V5_64bit/arduinoPlugin/packages/esp32/tools/esp-x32/2405/bin/xtensa-esp32s3-elf-size" -A "/home/users/a/Documents/sloeber-workspace_v5/gajgery/bin/Release/gajgery.elf" | "awk" -f /home/users/a/Documents/sloeber-workspace_v5/gajgery/bin/Release/size.awk

Sketch uses  bytes (0%)  of program storage space. Maximum is 3145728 bytes.
Global variables use  bytes (0%) of dynamic memory, leaving 327680 bytes for local variables. Maximum is 327680 bytes.

$ awk -W version
mawk 1.3.4 20240123
Copyright 2008-2023,2024, Thomas E. Dickey
Copyright 1991-1996,2014, Michael D. Brennan

random-funcs:       arc4random_stir/arc4random
regex-funcs:        internal

compiled limits:
sprintf buffer      8192
maximum-integer     9223372036854775808

what else to check?

@jantje
Copy link
Member

jantje commented Feb 18, 2025

I had a similar issue in windows with the | not working so I had Sloeber make a script and call the script.
Looks like that may work in linux as well

@uzi18
Copy link
Contributor Author

uzi18 commented Feb 18, 2025

Here it is Win 10 Pro 64bit and it works as expected:

Printing size:: gajgery.size
arduino-size.bat

C:\Users\b\Documents\sloeber-workspace1\gajgery\bin\Release>"C:\Sloeber\arduinoPlugin\packages\esp32\tools\esp-x32\2405/bin/xtensa-esp32s3-elf-size" -A "C:\Users\b\Documents\sloeber-workspace1\gajgery\bin\Release/gajgery.elf"   | "C:\Sloeber\arduinoPlugin\tools\awk\awk" -f size.awk 

Sketch uses 606472 bytes (31%)  of program storage space. Maximum is 1966080 bytes.
Global variables use 74436 bytes (23%) of dynamic memory, leaving 253244 bytes for local variables. Maximum is 327680 bytes.

@jantje
Copy link
Member

jantje commented Feb 18, 2025

Do you think using a script -like in windows- is the right way for Linux?

@uzi18
Copy link
Contributor Author

uzi18 commented Feb 18, 2025

@jantje it is curious why this not work on linux
If it works why not :)

jantje pushed a commit that referenced this issue Feb 18, 2025
Use the same way it is done in windows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants