フィルターのクリア

Problem with Simulink Realtime Target on Arduino UNO with Win 7 X64

4 ビュー (過去 30 日間)
Vincent Kahnke
Vincent Kahnke 2012 年 9 月 23 日
回答済み: Rogelio Martínez 2018 年 4 月 18 日
I keep getting the following error. I can't figure this one out.
The call to realtime_make_rtw_hook, during the after_make hook generated the following error: The build failed with the following message: "G:\MATLAB\Targets\R2012b\arduino-1.0\hardware\tools\avr\utils\bin\make": Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4217b3)
The build process will terminate as a result.
Caused by: The build failed with the following message: "G:\MATLAB\Targets\R2012b\arduino-1.0\hardware\tools\avr\utils\bin\make": Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4217b3)
  4 件のコメント
UMB
UMB 2015 年 9 月 13 日
It worked on Windows 10. The problem was a special sign on the path
Diogo Queiros
Diogo Queiros 2017 年 2 月 10 日
Im getting the same error but on windows 7, the path is the default path matlab created when i installed the package at C:/MATLAB etc. the file is called untitled. how do i fix this?

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

回答 (8 件)

Jorge
Jorge 2013 年 5 月 22 日
Another source of error appears to exist when parenthesis in the Windows PATH variable confuse the encoder. However, I've found a workaround:
  • Find the template of the Arduino makefile that MATLAB uses. Mine was located in C:\MATLAB\Targets\R2012b\arduinouno\registry\defarduinogmake.mkt for the Arduino Uno board.
  • Add the following line to the top of the template, right below the header: SHELL=C:/Windows/System32/cmd.exe
So far, now it compiles flawlessly for me.
  2 件のコメント
java python
java python 2013 年 10 月 2 日
I have the same problem with Ardupilot Mega 2.5 + . I checked everything and while compiling it still gives the same message. The call to realtime_make_rtw_hook, during the after_make hook generated the following error: The build failed with the following message: "C:/MATLAB/Targets/R2012a/arduino-1.0/hardware/tools/avr/bin/avr-gcc" -I"C
John Pritchard
John Pritchard 2015 年 2 月 13 日
編集済み: John Pritchard 2015 年 2 月 13 日
This worked for me - Running Win 8 x64, R2014b (Student License) with Arduino Uno R3. My problem was that I had installed the Arduino-Simulink support package and upon "Deploying to Hardware" the progress bar would hit 60% then have the problems everyone is describing here.
I did the following as Jorge suggests (note the file paths are different for me):
  1. Installed Arduino-Simulink Support Package
  2. Closed MATLAB
  3. Opened the following file in Notepad++: C:\MATLAB\SupportPackages\R2014b\arduinouno\toolbox\realtime\targets\arduinouno\registry\defarduinogmake.mkt
  4. Added SHELL=C:/Windows/System32/cmd.exe below header (see image below)
  5. Opened MATLAB
  6. typed rehash toolboxcache in the command window
  7. Opened Simulink and now "Deploy to Hardware" completes and runs just fine

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


java python
java python 2013 年 10 月 3 日
"to the top of the template, right below the header:" . I don't know where that is ? Could you please clarify little bit ? i am able to open the defarduinogmake.mkt file .

Erdi Tac
Erdi Tac 2014 年 8 月 14 日
I did what Jorge suggested and it works. But you need to do more than what is written in his answer. By the way the solution works for all arduino types. I will rewrite Jorge's answer with a few additions:
1) First of all close MATLAB.
2) For arduino uno find the file C:\MATLAB\Targets\R2012b\arduinouno\registry\defarduinogmake.mkt
For arduino nano find the file C:\MATLAB\Targets\R2012b\arduinonano\registry\defarduinogmake.mkt
For arduino mega2560 find the file C:\MATLAB\Targets\R2012b\arduinomega2560\registry\defarduinogmake.mkt
3) Add the following line to the top of the file, right below the header: SHELL=C:/Windows/System32/cmd.exe
The end of the header is where the lines with "#" ends.
By the way the file is read-only. You can edit the file by copying it to desktop for example. Then delete the one at the original location and copy the edited file back to that location.
4) After you do all these restart MATLAB and execute "rehash toolboxcache".
That's all. You're done.
  1 件のコメント
naymin tun
naymin tun 2014 年 12 月 20 日
編集済み: naymin tun 2014 年 12 月 20 日
I worked as you explained but not ok. When I test, this give the same message. So, I closed all matlab and reinstall/update all arduino support package and then rebuild. At that time, the first time of building and ok and the next time, it is not ok and gives the same error message. But my window is Window 8.1. 64 bit Pls, it has solution?

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


Himesh
Himesh 2015 年 1 月 15 日
I'm having the same problem, any updates?

jifeng rgj
jifeng rgj 2015 年 2 月 13 日
I also had this problem, and have solved it. Please look at the picture. I changed the "arduino-1.0.5-r2" to "arduino-1.0.5",and then it worked well.

jifeng rgj
jifeng rgj 2015 年 2 月 13 日
  1 件のコメント
Phan Thanh Loc
Phan Thanh Loc 2015 年 10 月 11 日
I can't change arduino IDE 1.0.5 r2 in matlab

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


Sadan Arshad
Sadan Arshad 2015 年 5 月 10 日
Hi i tried everything you guys mentioned i am running R2015a on Win 8.1 and still getting the same error with arduino uno.

Rogelio Martínez
Rogelio Martínez 2018 年 4 月 18 日
I had the same problem with MatlabR215a, but the problem was the name of my file. I named it servo and it caused conflicts, I just changed the name to controlpid and it worked.

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by