Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
e8e8efdb
Commit
e8e8efdb
authored
Jan 28, 2017
by
me-no-dev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finalize formatting of reported sketch size
parent
ca355604
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tools/common.sh
tools/common.sh
+2
-2
No files found.
tools/common.sh
View file @
e8e8efdb
...
...
@@ -5,7 +5,7 @@ function print_size_info()
elf_file
=
$1
if
[
-z
"
$elf_file
"
]
;
then
printf
"sketch iram0.text flash.text flash.rodata
irom0.text dram0.data dram0.bss
dram flash
\n
"
printf
"sketch iram0.text flash.text flash.rodata
dram0.data dram0.bss
dram flash
\n
"
return
0
fi
...
...
@@ -25,7 +25,7 @@ function print_size_info()
total_ram
=
$((${
segments
[dram0data]
}
+
${
segments
[dram0bss]
}))
total_flash
=
$((${
segments
[iram0text]
}
+
${
segments
[flashtext]
}
+
${
segments
[dram0data]
}
+
${
segments
[flashrodata]
}))
printf
"%-28s %-8d %-8d %-8d
%-8d %-8d
%-8d %-8d %-8d
\n
"
$sketch_name
${
segments
[iram0text]
}
${
segments
[flashtext]
}
${
segments
[flashrodata]
}
${
segments
[dram0data]
}
${
segments
[dram0bss]
}
$total_ram
$total_flash
printf
"%-28s %-8d %-8d %-8d
%-8d
%-8d %-8d %-8d
\n
"
$sketch_name
${
segments
[iram0text]
}
${
segments
[flashtext]
}
${
segments
[flashrodata]
}
${
segments
[dram0data]
}
${
segments
[dram0bss]
}
$total_ram
$total_flash
return
0
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment