How Do you have a file Hex for arduino?

6 ビュー (過去 30 日間)
Mus
Mus 2014 年 10 月 29 日
コメント済み: Shamnad 2014 年 10 月 31 日
Hello,
I want to have a file .hex for test this in proteus, but n i don't know how do it. i have support target arduino in simulink, but i don't have yet the hardware arduino.
Do you have a solution for this?
Thanks you

回答 (2 件)

Sandip Kumar
Sandip Kumar 2014 年 10 月 30 日
When using the Simulink Support Package for Arduino: http://www.mathworks.com/hardware-support/arduino-simulink.html
Using this support package and Arduino library blocks, when you deploy the model onto the Arduino, there is a set of files which are generated in the current folder. One of them is HEX file, which you are interested in looking at.
Thanks, Sandip
  1 件のコメント
Mus
Mus 2014 年 10 月 31 日
But without the hardware, it's not possible to have this file because it's stop before the finalisation processe and he said that your hardware it's not connected.
Thanks you.

サインインしてコメントする。


Shamnad
Shamnad 2014 年 10 月 31 日
If your Simulink file name is 'my_simulink_program', then look for the folder 'my_simulink_program_rtt' in your current working directory after building the file in Simulink.
Tip: Most people run the Simulink program without knowing that their current working directory is set somewhere else, other than the actual project directory. Make sure you look in the directory where MATLAB was set at the time of compiling the Simulink file.
  2 件のコメント
Mus
Mus 2014 年 10 月 31 日
But without the hardware, it's not possible to have this file because it's stop before the finalisation processe and he said that your hardware it's not connected.
Thanks you.
Shamnad
Shamnad 2014 年 10 月 31 日
Of course, the hardware should be connected when using Simulink.

サインインしてコメントする。

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by