Why do I get a build error when trying to build and deploy a model to Arduino ?

1 次查看(过去 30 天)
I am trying to build a model and deploy to Arduino. When I try to build the model, I get the following error : ERROR: The call to realtime_make_rtw_hook, during the after_make hook generated the following error: The build failed with the following message: "<file:///C:/MATLAB/SupportPackages/R2014a/arduino-1.0.5/hardware/tools/avr/utils/bin/make supporpackagesroot><file:///C:/MATLAB/SupportPackages/R2014a/arduino-1.0.5/hardware/tools/avr/utils/bin/make \R2014a\arduino-1.0.5\hardware\tools\avr\utils\bin\make>": Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4217b3) The build process will terminate as a result. The build failed with the following message: "<file:///C:/MATLAB/SupportPackages/R2014a/arduino-1.0.5/hardware/tools/avr/utils/bin/make supporpackagesroot\arduino-1.0.5\hardware\tools\avr\utils\bin\make>": Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4217b3) Component: Simulink | Category: Model error
 
where supportpackagesroot is the root directory for support packages installation. 

采纳的回答

MathWorks Support Team
The issue is due to a bug with versions of gmake earlier than version 3.82 when the Windows system path has the "(" or the ")" characters.
This issue has been addressed in the latest release of Arduino Support Packages published on October 22, 2015.
For earlier versions, you can implement the following workaround:
1. Go into "supportpackagesroot\arduinoboard\registry"  where supportpackagesroot is the directory where the support package is installed ( default is "C:\MATLAB\SupportPackages\version" with "version" being the installed MATLAB version for versions later than MATLAB R2013a, and "C:\MATLAB\Targets\version" for earlier versions ) and "arduinoboard" is the name of the board (e.g. "arduinouno", "arduinomega2560", etc.)
2. In this directory, find the file "defarduinogmake.mkt" and open it as a Text File.
3. Add the following line at the beginning of this file right after the initial comments: SHELL=C:/Windows/System32/cmd.exe .
4. Restart MATLAB.  
 
 

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Run on Target Hardware 的更多信息

产品


版本

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by