Цитата(rezident @ Jan 17 2010, 23:10)

Какой версией IAR пользуетесь и какой именно кристалл симулируете? Вот этот проект (см. вложение), скопированный из вашего исходника с минимальными изменениями, у меня в IAR EW430 4.20.1 компилируется без ошибок и симуляция его идет адекватно. Симуляцию прерываний (TimerA0 и ADC10) делаю с помощью опции Forced Interrupt.
Rezident, Спасибо за помощь, Ваш вариант даёт ту же ошибку, видимо дело в IAR EW430. Вот версии -
CODE
IAR Assembler for MSP430
V4.09A/W32 (4.9.1.9)
D:\430\bin\a430.exe
26.09.2007 9:38:38, 688128 bytes
IAR C/C++ Compiler for MSP430
V4.09A/W32 [Kickstart] (4.9.1.3)
D:\430\bin\icc430.exe
26.09.2007 9:27:24, 9121792 bytes
Uninstall Program for FTDI Drivers
3.0.0.33 (3.0.0.33)
D:\430\drivers\Olimex\FTDIUNIN.exe
26.09.2007 13:27:04, 420864 bytes
D:\430\drivers\Olimex\omjtunin.exe
26.09.2007 13:27:04, 28672 bytes
Windows Setup API
5.1.2600.0 built by: WinDDK (5.1.2600.0)
D:\430\drivers\Olimex\omjtunin2k.exe
26.09.2007 13:27:04, 47616 bytes
PreInstaller MFC Application
1, 0, 0, 1 (1.0.0.1)
D:\430\drivers\Olimex\PreInstaller.exe
26.09.2007 13:27:04, 32768 bytes
Uninstall Program for FTDI D2XX Drivers
2.2.0.2 (2.2.0.2)
D:\430\drivers\SoftBaugh\FTD2XXUN.EXE
26.09.2007 13:26:58, 406528 bytes
D:\430\src\examples\Segger\embOS\embOSView.exe
26.09.2007 13:28:34, 53760 bytes
IAR CSpyBat
5.0.1.254.6782 (5.0.1.254)
D:\common\bin\CSpyBat.exe
25.09.2007 13:53:50, 270336 bytes
IAR Build Utility
5.0.1.254.6782 (5.0.1.254)
D:\common\bin\iarbuild.exe
25.09.2007 13:53:50, 69632 bytes
IAR Embedded Workbench IDE
5.0.1.254.6782 (5.0.1.254)
D:\common\bin\IarIdePm.exe
25.09.2007 13:53:50, 364544 bytes
IAR Library Builder
1.03L (1.3.12.0)
D:\common\bin\xar.exe
31.08.2007 14:02:14, 98304 bytes
IAR XLIB
3.29P/386 (3.29.0.16)
D:\common\bin\xlib.exe
31.08.2007 14:03:18, 425984 bytes
IAR XLINK
4.60K (4.60.11.0)
D:\common\bin\xlink.exe
31.08.2007 15:03:52, 1388544 bytes
D:\RECYCLER\S-1-5-21-343818398-287218729-682003330-1003\Dd381\InstallWiseCalculator.exe
17.02.2005 17:32:14, 846819 bytes
D:\RECYCLER\S-1-5-21-343818398-287218729-682003330-1003\Dd382\ttc2ttf.exe
07.10.1998 15:15:34, 8192 bytes
D:\RECYCLER\S-1-5-21-343818398-287218729-682003330-1003\Dd383\Кулинарная Книга v.4.0-keygen.exe
06.04.2005 11:00:06, 6656 bytes
D:\RECYCLER\S-1-5-21-343818398-287218729-682003330-1003\Dd383\Кулинарная Книга v.4.0.exe
05.04.2005 2:36:36, 4623779 bytes
D:\RECYCLER\S-1-5-21-343818398-287218729-682003330-1003\Dd384\mosmap21.exe
17.02.2005 17:33:28, 7631205 bytes
Flash Player 5.0 r30
5,0,30,0 (5.0.30.0)
D:\RECYCLER\S-1-5-21-343818398-287218729-682003330-1003\Dd387\bed.exe
17.08.2000 18:00:30, 545456 bytes
Flash Player 5.0 r30
5,0,30,0 (5.0.30.0)
D:\RECYCLER\S-1-5-21-343818398-287218729-682003330-1003\Dd387\horse.exe
17.08.2000 18:03:56, 662399 bytes
Flash Player 5.0 r30
5,0,30,0 (5.0.30.0)
D:\RECYCLER\S-1-5-21-343818398-287218729-682003330-1003\Dd387\radio.exe
17.08.2000 18:00:30, 678592 bytes
Flash Player 5.0 r30
5,0,30,0 (5.0.30.0)
D:\RECYCLER\S-1-5-21-343818398-287218729-682003330-1003\Dd387\roll.exe
16.04.2002 6:58:28, 1008476 bytes
Flash Player 5.0 r30
5,0,30,0 (5.0.30.0)
D:\RECYCLER\S-1-5-21-343818398-287218729-682003330-1003\Dd387\ruspunk.exe
07.06.2002 9:50:48, 1225712 bytes
Flash Player 5.0 r30
5,0,30,0 (5.0.30.0)
D:\RECYCLER\S-1-5-21-343818398-287218729-682003330-1003\Dd387\secret.exe
07.04.2002 16:53:28, 1057368 bytes
Flash Player 5.0 r30
5,0,30,0 (5.0.30.0)
D:\RECYCLER\S-1-5-21-343818398-287218729-682003330-1003\Dd387\showtime.exe
17.08.2000 18:00:30, 804909 bytes
Flash Player 5.0 r30
5,0,30,0 (5.0.30.0)
D:\RECYCLER\S-1-5-21-343818398-287218729-682003330-1003\Dd387\spb.exe
04.03.2002 3:17:48, 1127819 bytes
Flash Player 5.0 r30
5,0,30,0 (5.0.30.0)
D:\RECYCLER\S-1-5-21-343818398-287218729-682003330-1003\Dd387\zug.exe
10.10.2001 15:45:54, 414174 bytes
D:\SuperDOS\MBRutil.exe
25.02.2002 15:52:14, 78336 bytes
D:\SuperDOS\RESTRMBR.EXE
31.08.2001 12:47:58, 41038 bytes
Recover deleted files and lost data
3.9.8.6220 (3.9.8.6220)
D:\temp\RecoverMyFiles-Setup.exe
26.01.2009 2:17:04, 8280240 bytes
UndeletePlus™ Setup
3.0.0.602 (3.0.0.602)
D:\temp\UndeletePlus_setup.exe
20.11.2009 12:29:08, 174963 bytes
IAR C-SPY Batch Simulator Driver for MSP430
V4.09A/W32 (4.9.1.9)
D:\430\bin\430bat.dll
25.09.2007 15:16:50, 270336 bytes
IAR C-SPY Emulator Driver for MSP430
V4.09A/W32 [Kickstart] (4.9.1.3)
D:\430\bin\430fet.dll
25.09.2007 15:04:06, 892928 bytes
IAR C-SPY Library Support Plug-in for MSP430
V4.09A/W32 (4.9.1.9)
D:\430\bin\430libsupport.dll
25.09.2007 15:15:48, 376832 bytes
IAR C-SPY Processor Descriptor for MSP430
V4.09A/W32 (4.9.1.9)
D:\430\bin\430proc.dll
25.09.2007 15:15:36, 1179648 bytes
IAR C-SPY Simulator Driver for MSP430
V4.09A/W32 [Kickstart] (4.9.1.3)
D:\430\bin\430sim.dll
25.09.2007 14:59:20, 1228800 bytes
CP210x
1.2 (1.2.0.0)
D:\430\bin\CP210xManufacturing.dll
26.09.2007 13:30:04, 69632 bytes
IAR Project File Converter for MSP430
V3.21A/W32 (3.21.1.9)
D:\430\bin\cwtd430.dll
26.09.2007 13:27:06, 352256 bytes
FTD2XX library
3.01.06 (3.1.6.1)
D:\430\bin\FTD2XX.dll
26.09.2007 13:30:04, 81920 bytes
HIL
1, 2, 2, 0 (1.2.2.0)
D:\430\bin\hil.dll
26.09.2007 13:30:04, 32768 bytes
SEGGER J-Link MSP430 interface DLL
2.1.1.0 (2.1.1.0)
D:\430\bin\JLink430.dll
26.09.2007 13:30:04, 114688 bytes
MSP430.dll for the USB-MSP430-FPA v10.0
2, 1, 10, 0 (2.1.10.0)
D:\430\bin\MSP430-FPA.dll
26.09.2007 13:30:04, 348160 bytes
MSP430
Version (2.3.1.0)
D:\430\bin\msp430.dll
26.09.2007 13:30:04, 225280 bytes
MSP430
1, 0, 1, 1 (1.0.1.1)
D:\430\bin\olimex.dll
26.09.2007 13:30:06, 458752 bytes
SBMSP430_DLL DLL
2, 1, 8, 1 (2.1.8.1)
D:\430\bin\sbmsp430.dll
26.09.2007 13:30:06, 258048 bytes
SiUSBXp
2, 3, 0, 0 (2.3.0.0)
D:\430\bin\SiUSBXp.dll
26.09.2007 13:30:06, 90112 bytes
MSP430
Version (2.1.8.1)
D:\430\bin\SoftBaugh.dll
26.09.2007 13:30:06, 32768 bytes
IAR Workbench Target Descriptor for MSP430
V4.09A/W32 (4.9.1.9)
D:\430\bin\swtd430.dll
25.09.2007 15:16:40, 749568 bytes
IAR Workbench Target Descriptor, Emulator, for MSP430
V4.09A/W32 (4.9.1.9)
D:\430\bin\swtd430fet.dll
25.09.2007 14:45:40, 360448 bytes
IAR Workbench Target Descriptor, Simulator, for MSP430
V4.09A/W32 (4.9.1.9)
D:\430\bin\swtd430sim.dll
25.09.2007 14:59:54, 294912 bytes
FTD2XX library
3.00.05 (3.0.5.1)
D:\430\drivers\Olimex\FTD2XX.dll
26.09.2007 13:27:04, 81920 bytes
FTD2XX library
2.00.11 (2.0.11.1)
D:\430\drivers\SoftBaugh\FTD2XX.dll
26.09.2007 13:26:58, 69632 bytes
LCD Plugin for EW430
3.42A (3.42.1.9)
D:\430\plugins\Lcd\lcd.dll
26.09.2007 14:06:54, 266240 bytes
SEGGER embOS IAR-Plugin
2, 0, 5, 0 (2.0.5.0)
D:\430\plugins\rtos\embOS\embOSPlugin.dll
26.09.2007 13:28:34, 397312 bytes
µC/OS-II KA Plug-in for C-SPY DLL
2.50 2007-09-10 (2.5.0.0)
D:\430\plugins\rtos\uCOS-II\uCOS-II-KA-CSpy.dll
26.09.2007 13:28:34, 339968 bytes
IAR CSpyBat Language Specific Resources
5.0.1.254.6782 (5.0.1.254)
D:\common\bin\CSpyBat.ENU.dll
25.09.2007 13:53:50, 4608 bytes
IAR C-SPY Debugger GUI
5.0.1.254.6782 (5.0.1.254)
D:\common\bin\DebuggerGui.dll
25.09.2007 13:53:50, 1159168 bytes
IAR C-SPY Debugger GUI Language Specific Resources
5.0.1.254.6782 (5.0.1.254)
D:\common\bin\DebuggerGui.ENU.dll
25.09.2007 13:53:50, 73728 bytes
IAR Find In Files
5.0.1.254.6782 (5.0.1.254)
D:\common\bin\FindInFiles.dll
25.09.2007 13:53:50, 188416 bytes
IAR Find In Files Language Specific Resources
5.0.1.254.6782 (5.0.1.254)
D:\common\bin\FindInFiles.ENU.dll
25.09.2007 13:53:50, 5632 bytes
IAR Build Utility Language Specific Resources
5.0.1.254.6782 (5.0.1.254)
D:\common\bin\iarbuild.ENU.dll
25.09.2007 13:53:50, 4096 bytes
IAR Embedded Workbench IDE Language Specific Resources
5.0.1.254.6782 (5.0.1.254)
D:\common\bin\IarIdePm.ENU.dll
25.09.2007 13:53:50, 479232 bytes
IAR IDE Framework
5.0.1.254.6782 (5.0.1.254)
D:\common\bin\IdeFramework.dll
25.09.2007 13:53:50, 655360 bytes
IAR IDE Framework Language Specific Resources
5.0.1.254.6782 (5.0.1.254)
D:\common\bin\IdeFramework.ENU.dll
25.09.2007 13:53:50, 5120 bytes
IAR C-SPY Debugger Kernel
5.0.1.254.6782 (5.0.1.254)
D:\common\bin\Kernel.dll
25.09.2007 13:53:50, 1576960 bytes
IAR C-SPY Debugger Kernel Language Specific Resources
5.0.1.254.6782 (5.0.1.254)
D:\common\bin\Kernel.ENU.dll
25.09.2007 13:53:50, 8192 bytes
IAR Log Window
5.0.1.254.6782 (5.0.1.254)
D:\common\bin\LogWindow.dll
25.09.2007 13:53:50, 212992 bytes
IAR Log Window Language Specific Resources
5.0.1.254.6782 (5.0.1.254)
D:\common\bin\LogWindow.ENU.dll
25.09.2007 13:53:50, 11264 bytes
IAR Project Manager Engine
5.0.1.254.6782 (5.0.1.254)
D:\common\bin\ProjectManagerEngine.dll
25.09.2007 13:53:50, 1073152 bytes
IAR Project Manager Engine Language Specific Resources
5.0.1.254.6782 (5.0.1.254)
D:\common\bin\ProjectManagerEngine.ENU.dll
25.09.2007 13:53:50, 13824 bytes
IAR Project Manager Gui
5.0.1.254.6782 (5.0.1.254)
D:\common\bin\ProjectManagerGui.dll
25.09.2007 13:53:50, 708608 bytes
IAR Project Manager Gui Language Specific Resources
5.0.1.254.6782 (5.0.1.254)
D:\common\bin\ProjectManagerGui.ENU.dll
25.09.2007 13:53:50, 106496 bytes
IAR Text Editor
5.0.1.254.6782 (5.0.1.254)
D:\common\bin\TextEditor.dll
25.09.2007 13:53:50, 491520 bytes
IAR Text Editor Language Specific Resources
5.0.1.254.6782 (5.0.1.254)
D:\common\bin\TextEditor.ENU.dll
25.09.2007 13:53:50, 26112 bytes
Shared Library for Xerces-C Version 1.5.1
1, 5, 1 (1.5.1.0)
D:\common\bin\xerces-c_1_5_1.dll
25.09.2007 13:53:48, 1257472 bytes
D:\common\bin\XmlLib.dll
25.09.2007 13:53:48, 90112 bytes
IAR Code Coverage Plug-in
5.0.1.254.6782 (5.0.1.254)
D:\common\plugins\CodeCoverage\CodeCoverage.dll
25.09.2007 13:53:48, 303104 bytes
IAR Code Coverage Plug-in Language Specific Resources
5.0.1.254.6782 (5.0.1.254)
D:\common\plugins\CodeCoverage\CodeCoverage.ENU.dll
25.09.2007 13:53:48, 10752 bytes
IAR ORTI RTOS Plug-in
5.0.1.254.6782 (5.0.1.254)
D:\common\plugins\Orti\Orti.dll
25.09.2007 13:53:48, 413696 bytes
D:\common\plugins\Orti\Orti.ENU.dll
25.09.2007 13:53:48, 8704 bytes
IAR Profiling Plug-in
5.0.1.254.6782 (5.0.1.254)
D:\common\plugins\Profiling\Profiling.dll
25.09.2007 13:53:48, 299008 bytes
IAR Profiling Plug-in Language Specific Resources
5.0.1.254.6782 (5.0.1.254)
D:\common\plugins\Profiling\Profiling.ENU.dll
25.09.2007 13:53:48, 10752 bytes
IAR Stack Plug-in
5.0.1.254.6782 (5.0.1.254)
D:\common\plugins\Stack\Stack.dll
25.09.2007 13:53:48, 331776 bytes
IAR Stack Plug-in Language Specific Resources
5.0.1.254.6782 (5.0.1.254)
D:\common\plugins\Stack\Stack.ENU.dll
25.09.2007 13:53:48, 8192 bytes
Resources for AcEtUtil
2.00 (1.0.0.0)
D:\RECYCLER\S-1-5-21-343818398-287218729-682003330-1003\Dd382\acetutil.dll
25.03.1999 9:06:22, 16384 bytes
ctw Module
1, 0, 0, 1 (1.0.0.1)
D:\RECYCLER\S-1-5-21-343818398-287218729-682003330-1003\Dd382\axctextapp.dll
25.03.1999 9:09:40, 90112 bytes
RText COM Wrapper
1.00 (1.0.0.0)
D:\RECYCLER\S-1-5-21-343818398-287218729-682003330-1003\Dd382\axrtext.dll
25.03.1999 9:07:16, 73728 bytes
Resources for ArcText
2.00 (2.0.0.0)
D:\RECYCLER\S-1-5-21-343818398-287218729-682003330-1003\Dd382\ctextapp.dll
25.03.1999 9:09:14, 32768 bytes
Resources for DIMSIO
2.00 (2.0.0.0)
D:\RECYCLER\S-1-5-21-343818398-287218729-682003330-1003\Dd382\dimsio.dll
25.03.1999 9:06:30, 24576 bytes
Resources for Leader Tools
1.00 (2.0.0.0)
D:\RECYCLER\S-1-5-21-343818398-287218729-682003330-1003\Dd382\leaderex.dll
25.03.1999 9:09:54, 24576 bytes
Move Copy Rotate application for AutoCAD
1.00 (1.0.0.0)
D:\RECYCLER\S-1-5-21-343818398-287218729-682003330-1003\Dd382\mocoro.dll
25.03.1999 9:07:22, 12288 bytes
Resources for RText
1.00 (1.0.0.0)
D:\RECYCLER\S-1-5-21-343818398-287218729-682003330-1003\Dd382\rtext.dll
25.03.1999 9:06:54, 12288 bytes
Resources for Wipeout
2.00 (2.0.0.0)
D:\RECYCLER\S-1-5-21-343818398-287218729-682003330-1003\Dd382\wipeout.dll
25.03.1999 9:07:48, 20480 bytes
Ищу дистрибутив Вашей среды разработки.