Arduino: What is the size of the program?

조회 수: 7 (최근 30일)
Scott Garabedian
Scott Garabedian 2015년 4월 9일
댓글: Scott Garabedian 2015년 5월 6일
Hello, I am using the Simulink Support Package for Arduino Hardware (Matlab R2013b). It is programming the code to the target successfully. How can I find the size of the program written for the UNO?
Comparably, when I use the Arduino IDE, after programming the hardware, the log window will state something like: "Binary sketch size: 1,082 bytes (of a 32,256 byte maximum)" . I would like to know the size of what Simulink is programming so that I have an understanding of how much space is still available.

답변 (1개)

Abhishek GS
Abhishek GS 2015년 4월 13일
Hi Scott Garabedian,
The size of the of program, deployed onto the board, is displayed on the MATLAB Command prompt from MATLAB 8.3 (R2014a) onwards.
For previous releases, you may have to use the 'avr-size' utility present in arduino-x.x/hardware/tools/avr/bin. The format to use it in system command prompt is :
avr-size filename.elf
Hope it helps, Abhishek
  댓글 수: 2
Scott Garabedian
Scott Garabedian 2015년 4월 13일
Thank you for the help. Here is the response it gave me:
text data bss dec hex filename
25632 352 276 26260 6694 Arduino_Blink.elf
So the program size is text + data + bss = 26260 bytes? 26260/32256 = 81.4% full? Am I understanding this correctly?
Scott Garabedian
Scott Garabedian 2015년 5월 6일
Hi Abhishek, can you confirm my calculation in the previous comment? Is the program 81.4% full?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Arduino Hardware에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by