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.

OMAPL138 debug 报错 指向disassembly

报错如下

cant find a source file at "D:/startware_gitorious_omapl138/startware_01_10_04_01/system_config/armv5/cgt/init.asm"

locate the file or edit the source lookup path to include its location...

我加载的是别人的例程,本身计算机并没有这个路径。。。

我的startware在c盘ti目录下

我想问的是同样还有别的例程,并没有报错。。。

  • D:/startware_gitorious_omapl138这个路径要改成您计算机上starterware的安装路径。
  • 谢谢您的回复。
    首先,我想问的是这个路径在哪里设置,我自己的电脑上没有“startware_gitorious_omapl138”这个文件夹,但是我在c盘ti文件夹“C:/ti/startware_01_10_04_01/system_config/armv5/cgt/init.asm”找到该文件,并添加近来。
    然后重新debug,跑到主循环里循环一次后,再次循环在断点不能停下,点击suspend后停在刚才添加进来的“init.asm”文件。
    118行~130行
    ; Enter the start_boot function. The execution still happens in system mode
    ;
    LDR r10, _start_boot ; Get the address of start_boot
    MOV lr,pc ; Dummy return
    BX r10 ; Branch to start_boot
    SUB pc, pc, #0x08 ; looping

    ; MSR cpsr_c, #MODE_SVC|I_F_BIT ; change to SVC mode
    ; BX lr
    ;
    ; End of the file
    ;
    请问这个是什么情况。
    我看这句话“ SUB pc, pc, #0x08 ; looping”,looping的意思貌似是在循环里,但是这句“Enter the start_boot function. The execution still happens in system mode”感觉应该程序启动后先运行init文件,但是我的情况好像相反,我已经跑进main函数,执行到while循环里,却跳转到这里,我很迷惑。请求赐教!