简体   繁体   English

未解决的符号仍然存在 Code composer studio

[英]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.

相关问题 尽管链接了库,但我的x86-32代码中未解析的外部符号 - Unresolved external symbols in my x86-32 code despite linking the library 使用TI代码编写器工作室(适用于ARM)在C代码中进行内联汇编 - Inline assembly in C code using TI code composer studio (for ARM) 如何在Code Composer Studio(CCS)中为TI MSP432系列创建仅汇编项目 - how to create an assembly-only project in Code Composer Studio (CCS) for TI MSP432 series 在Code Composer Studio中为ARM cortex M4f在C变量中保存堆栈指针的值 - Saving value of stack pointer in C variable in Code Composer studio for ARM cortex M4f 引用分别加载到内存的另一部分的代码/数据的符号 - Referencing symbols of code/data loaded separately to another part of memory 如何在NASM代码中包括调试符号以在Windows上使用GDB进行调试? - How to include debug symbols in NASM code for debugging using GDB on Windows? 如何强制 GDB 执行没有符号的代码 - How can I force GDB to execute code for which there are no symbols Visual Studio汇编代码 - Visual Studio Assembly Code 在位置无关代码中引用链接器定义的符号 - Referencing linker-defined symbols in position independent code 在 Visual Studio 代码中运行 asm - Run asm in Visual Studio code
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM