[英]unresolved symbols remain Code composer studio
I have been trying out my first assembly level program on MSP4302355 microcontroller.我一直在 MSP4302355 微控制器上尝试我的第一个汇编级程序。 All i am doing is just moving values from one register to another.
我所做的只是将值从一个寄存器移到另一个寄存器。 But whenever I compile the code i am getting a errors "error #10234-D: unresolved symbols remain
但是每当我编译代码时,我都会收到一个错误“错误 #10234-D:未解析的符号仍然存在”
error #10010: errors encountered during linking;错误 #10010:链接过程中遇到错误; "Register_Mode_Addr_2355.out" not built"
“Register_Mode_Addr_2355.out”未构建”
i have tried all i could but still no use.我已经尽我所能,但仍然没有用。
;-------------------------------------------------------------------------------
; MSP430 Assembler Code Template for use with TI Code Composer Studio
;
;
;-------------------------------------------------------------------------------
.cdecls C,LIST,"msp430.h" ; Include device header file
;-------------------------------------------------------------------------------
.def RESET ; Export program entry-point to
; make it known to linker.
;-------------------------------------------------------------------------------
.text ; Assemble into program memory.
.retain ; Override ELF conditional linking
; and retain current section.
.retainrefs ; And retain any sections that have
; references to current section.
;-------------------------------------------------------------------------------
RESET mov.w #__STACK_END,SP ; Initialize stackpointer
StopWDT mov.w #WDTPW|WDTHOLD,&WDTCTL ; Stop watchdog timer
;-------------------------------------------------------------------------------
; Main loop here
;-------------------------------------------------------------------------------
main:
mov.w PC, R4 ;Move from Program counter to Register R4
mov.w R4, R5 ;Move from R4 to Register R5
mov.w R5, R6 ;Move from R5 to Register R6
jmp main
;-------------------------------------------------------------------------------
; Stack Pointer definition
;-------------------------------------------------------------------------------
.global __STACK_END
.sect .stack
;-------------------------------------------------------------------------------
; Interrupt Vectors
;-------------------------------------------------------------------------------
.sect ".reset" ; MSP430 RESET Vector
.short RESET
Please help me out guys thanks in advance请帮助我,提前谢谢
The "unresolved symbols remain" means that the linker failed because it couldn't resolve one or more symbols from your assembled source, most likely the __STACK_END symbol. “保留未解析的符号”意味着链接器失败,因为它无法从您的汇编源解析一个或多个符号,很可能是 __STACK_END 符号。 Suggest you open the console window that shows the build process, and scroll through that looking for the list of unresolved symbols, most likely at the end.
建议您打开显示构建过程的控制台窗口,然后滚动查看未解析符号列表,很可能在最后。 This will confirm the __STACK_END symbol which is my guess at the problem.
这将确认 __STACK_END 符号,这是我对问题的猜测。 A bit old, but this thread may be helpful.
有点旧,但这个线程可能会有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.