Quantcast
Channel: MSP 低功耗微控制器论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 3634

MSP430F5438A程序量较大后,编译出现: Number out of range. Valid range is -32768 (-0x8000) to 65535 (0xFFFF).

$
0
0

  我用IAR 430 5.50.2写MSP430F5438A的程序,工程中包含了cstartup.s43 文件

当程序量较小时,编译没有问题。当程序量大时就提示如下错误,但是我把cstartup.s43文件从工程中去掉后编译正常。

工程中添加cstartup.s43的主要原因是把可恶的看门狗关闭。

 

请问下面的错误如何解决????????谢谢

   IAR Universal Linker V5.3.2.26
     Copyright 1987-2012 IAR Systems AB.
Error[e18]: Range error, 
 Number out of range. Valid range is -32768 (-0x8000) to 65535 (0xFFFF).
 File: C:\Documents and Settings\Administrator\桌面\96\System\cstartup.s43, Line: 275 
 Source:         MOV.W   #(SFB DATA20_ID), CW1
 
  Where $ = ?cstart_init_copy20 + 0x6  [0x5C20]
            in module "?cstart" (C:\Documents and Settings\Administrator\桌面\96\Project\Debug\Obj\cstartup.r43),
            offset 0x6 in segment part 18, segment CSTART
  What: 0 + SFB(DATA20_ID) [0x1774A]
  Allowed range: 0xFFFF8000 - 0xFFFF
  Operand: #no label found# [0x1774a]
           in module ?cstart (C:\Documents and Settings\Administrator\桌面\96\Project\Debug\Obj\cstartup.r43),
           Offset 0x0 in segment part 9, segment DATA20_ID
Error while running Linker
 
Total number of errors: 1
Total number of warnings: 29


Viewing all articles
Browse latest Browse all 3634

Trending Articles