This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

用IAR5.5make时出现错误。Error[e46]: Undefined external "?cstart_init_zero"

Other Parts Discussed in Thread: MSP430F149

Building configuration: ucos-149 - Debug
Updating build tree...
app.c
Linking
Error[e46]: Undefined external "?cstart_init_zero" referred in AD_6 ( D:\3pase\994998348uCOS252_MSP430F149\
uCOS252_MSP430F149\Debug\Obj\AD_6.r43 )
Error[e46]: Undefined external "?ShiftRight16s" referred in AD_6 ( D:\3pase\994998348uCOS252_MSP430F149\
uCOS252_MSP430F149\Debug\Obj\AD_6.r43 )
Error[e46]: Undefined external "?cstart_init_copy" referred in cal_pqs ( D:\3pase\994998348uCOS252_MSP430F149\
uCOS252_MSP430F149\Debug\Obj\cal_pqs.r43 )
Error[e46]: Undefined external "?Mul16to32sHw" referred in cal_pqs ( D:\3pase\994998348uCOS252_MSP430F149\
uCOS252_MSP430F149\Debug\Obj\cal_pqs.r43 )
Error[e46]: Undefined external "?Epilogue3" referred in cal_pqs ( D:\3pase\994998348uCOS252_MSP430F149\
uCOS252_MSP430F149\Debug\Obj\cal_pqs.r43 )
Error[e46]: Undefined external "?Mul32Hw" referred in cal_pqs ( D:\3pase\994998348uCOS252_MSP430F149\
uCOS252_MSP430F149\Debug\Obj\cal_pqs.r43 )
Error while running Linker

Total number of errors: 6
Total number of warnings: 0

  • 是不是路径没指定好

  • 我在MSP430F149中移植了一个UCOS系统,我有把程序重新复制到一个没有操作系统的工程里然后就没有报错?我想可能是RAM不够用啦。怎么把变量定义到FLSAH中去?

  • 应该是由于未连接运行库造成的LINK错误。请您尝试将option->gerenal option->library->library 选择了NORMAL DLIB。

  • 感谢您的回复,您的回复解决了这个问题,但还有个问题。

    Error[e16]: Segment DATA16_Z (size: 0xb20 align: 0x1) is too long for segment definition. At least 0x328 more bytes

    needed. The problem occurred while processing the segment placement command

    "-Z(DATA)DATA16_I,DATA16_Z,DATA16_N,TLS16_I,DATA16_HEAP+_DATA16_HEAP_SIZE=0200-09FF", where at the

    moment of placement the available memory ranges were "CODE:208-9ff"

    Reserved ranges relevant to this placement:

    200-9ff DATA16_I

    Error while running Linker

  • 建议您参考下 https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/203466

    另外建议您最好使用最新版本的IAR

x 出现错误。请重试或与管理员联系。