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.

F28377s工程debug以后,指针指不到main

各位专家好:

        最近在做关于F28377s的程序由flash搬移ram的工作,在cmd文件中,如果.text的定义如下:

.text              : LOAD = FLASHB_C, PAGE = 0
                         RUN =  RAMGS10_13, PAGE = 1   
                         LOAD_START(_text_loadstart),
                         RUN_START(_text_runstart),
                         SIZE(_text_Size)

工程debug以后就指不到main,如果恢复原来的定义 

.text               : >> FLASHB | FLASHC | FLASHD | FLASHE      PAGE = 0, ALIGN(4)

debug后就可以指到main,请问这怎么解啊?

  • 不能把整个.text如此操作,只能将某些函数归类到某个段,这个段按照你上面去处理,然后需要在main中调用memcopy函数将代码复制到RAM,才能调用那些函数。

    你把整个.text都放在RAM,谁来调用memcpy函数?

    Eric

  • 可是我是完全按照资料 Copying Compiler Section From Flash to RAM on the TMS320F28xxx DSCs进行的flash到ram的搬移啊

  • 是不是因为在_intc00前加入了copy_sections导致的程序debug后进不到main函数呢?