Why do I receive an 'abnormal program termination' make utility error when attempting to generate code for the Tornado Target?

7 views (last 30 days)
Why do I receive an 'abnormal program termination' make utility error when attempting to generate code for the Tornado Target?
I have made the needed modifications to the template makefile as specified in the Real-Time Workshop User's Guide Tornado section. I then ran my model and attempted to generate code for Tornado, but I received the following at the MATLAB prompt during the compilation:
### asyncdemo.mk which is generated from
C:\MATLAB6p1\rtw\c\tornado\tornado2.tmf is up to date
### Building asyncdemo: e:\tornado\host\x86-win32\bin\make -f asyncdemo.mk
BASE_PRIORITY=30 STACK_SIZE=16384
e:/Tornado/host/x86-win32/powerpc-wrs-vxworks/bin/gcc -c -DCPU=PPC604
-DVXWORKS -W -nostdinc -fno-builtin
-Be:/Tornado/host/x86-win32/lib/gcc-lib/powerpc-wrs-vxworks/cygnus-2.7.2-960
126/ -mlongcall -DMODEL=asyncdemo -DRT -DNUMST=4 -DTID01EQ=0
-DNCSTATES=0 -DRT_STATIC -DMULTITASKING=1 -I.
-IC:\MATLAB6p1/simulink/include -IC:\MATLAB6p1/extern/include
-IC:\MATLAB6p1/rtw/c/src -IC:\MATLAB6p1/rtw/c/libsrc
-IC:\MATLAB6p1/rtw/c/tornado/devices -Ie:/Tornado/target/h
-Ie:/Tornado/host/include/share -O asyncdemo.c
abnormal program termination
make: *** [asyncdemo.o] Error 0x3
I also tried running the demo, asyncdemo, and received the same error. How do I resolve this?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
Here are the steps to troubleshooting this error:
1. Run the asyncdemo model to create the .mk file. Be sure to change (set) the Interrupt Control block 'Mode' parameter to be 'RTW' instead of 'Simulation.'
2. Open a DOS command window and cd into the directory where the .mk file exists
3. Next, run the make utility on the .mk file as follows:
make -f asyncdemo.mk
If you receive the same error, it is usually caused by some environment variable setting in the template makefile (tmf). Please review the file and make the needed corrections.
If you do not receive this error, please do the following:
A. Run the make utility again as follows:
make -f asyncdemo.mk -n >temp.bat
B. Run the temp.bat file which was created:
temp.bat
If you have no error, you may be running into a Windows issue which has to do with line wrapping. This effected Windows NT and older systems.
If you do get an error, an object file (either model_name.o or model_name.obj) will be created. Be sure to check this file for the possible error.

More Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!