Simulink Arduino - size of file loaded onto the Arduino

2 ビュー (過去 30 日間)
Vincent
Vincent 2013 年 10 月 3 日
回答済み: Rolfe Dlugy-Hegwer 2013 年 11 月 10 日
As the Arduino Uno only has 32K of program space, I was wondering how to tell the size of the resulting Simulink Target program that gets loaded on the Arduino. I found the ".hex" file, but it's 72K, so it can be the program that gets loaded onto the Arduino.

採用された回答

Rolfe Dlugy-Hegwer
Rolfe Dlugy-Hegwer 2013 年 11 月 10 日
You're correct. The hex file you see is not the size of the hex file the software uploaded to the Arduino hardware. Unfortunately, with the current releases (including 13b), the real file size isn't available.
If you're having problems with the program size exceeding the size of the flash on your board, you have two options:
  1. Reduce the program size, or
  2. Use a board with more memory (e.g., Mega2560, Due).
To reduce the program size try to:
  • Simplify the model
  • Remove unused blocks
  • Reduce the size of signals and data
  • If you enabled it, disable External mode

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeArduino Hardware についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by