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

CSTACK越界

$
0
0

固件更新,将全局变量和CONST常量放在RAM和FRAM中,连接文件中

-D_STACK_SIZE=160

// -----------------------------------------------
// RAM memory
//

-Z(DATA)TINYRAM=0006-001F
-Z(DATA)DATA16_I,DATA16_Z,DATA16_N,TLS16_I=1C00-23FF
-Z(DATA)CODE_I
-Z(DATA)DATA20_I,DATA20_Z,DATA20_N
-Z(DATA)CSTACK+_STACK_SIZE#

编译出错


Updating build tree...
Linking
Error[e16]: Segment CSTACK (size: 0x1f4 align: 0x1) is too long for segment definition. At least 0xf3 more bytes  
needed. The problem occurred while processing the segment placement command  
"-Z(DATA)CSTACK+_STACK_SIZE#", where at the moment of placement the available memory ranges were  
"CODE:23f8-23ff,CODE:2087-2087,CODE:1e73-1f73,CODE:1e51-1e51,CODE:1e28-1e28,CODE:1dff-1e1f,CODE:1d
cb-1dcf,CODE:1d1e-1d1f,CODE:1d12-1d12,CODE:1c9c-1c9c,CODE:1c2d-1c2d,CODE:1c0b-1c0b,CODE:1c06-1c0
6"
   Reserved ranges relevant to this placement:
   1c00-1c05            DATA16_AN
   1c06-1c06            CSTACK
   1c07-1c0a            DATA16_AN
   1c0b-1c0b            CSTACK
   1c0c-1c2c            DATA16_AN
   1c2d-1c2d            CSTACK
   1c2e-1c9b            DATA16_AN
   1c9c-1c9c            CSTACK
   1c9d-1d11            DATA16_AN
   1d12-1d12            CSTACK
   1d13-1d1d            DATA16_AN
   1d1e-1d1f            CSTACK
   1d20-1dca            DATA16_AN
   1dcb-1dcf            CSTACK
   1dd0-1dfe            DATA16_AN
   1dff-1e1f            CSTACK
   1e20-1e27            DATA16_AN
   1e28-1e28            CSTACK
   1e29-1e50            DATA16_AN
   1e51-1e51            CSTACK
   1e52-1e72            DATA16_AN
   1e73-1f73            CSTACK
   1f74-2086            DATA16_AN
   2087-2087            CSTACK
   2088-23f7            DATA16_AN
   23f8-23ff            CSTACK
Error while running Linker
 
Total number of errors: 1
Total number of warnings: 0

这个怎么修改






Viewing all articles
Browse latest Browse all 3634

Trending Articles