TI28377D仿真调试过程,如何运行code_start的入口函数
欢迎
项目场景:
在使用XDS200仿真器对TI的28377D开发板进行仿真调试时,需要进入CODE_START
问题描述:
使用reset和restart时,有时候CCS默认的DEBUG会进入到函数入口main(),而非进入到code_start,导致一些在boot中运行的程序,在仿真模式下无法执行
自定义特殊函数(在跳转到_c_int00前),
code_start:
.if WD_DISABLE == 1
LB wd_disable ;Branch to watchdog disable code
.else
LB _c_int00 ;Branch to start of boot._asm in RTS library
.endif
原因分析:
reset之后,仿真器将pc定位到codestart处,此时如restart,根据仿真器中的debug配置,restart会跳过codestart,直接进入到main()入口处,故不能执行code_start入口函数
解决方案:
reset后,直接run,不要执行restart,或者通过打断点单步执行;