UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

取消
显示结果 
搜索替代 
您的意思是: 
Highlighted
Observer guodong_zl
Observer

程序一直停在ps7_init

14:09:01 INFO  : ----------------XSDB Script----------------

connect -url tcp:127.0.0.1:3121

source E:/vivado_proj/gdb_sys_1107_1/gdb_sys_1107_1.sdk/gdb_sys_1107_wrapper_hw_platform_0/ps7_init.tcl

targets -set -nocase -filter {name =~"APU*" && jtag_cable_name =~ "Platform Cable USB 00000000000000"} -index 0

rst -system

after 3000

targets -set -filter {jtag_cable_name =~ "Platform Cable USB 00000000000000" && level==0} -index 1

fpga -file E:/vivado_proj/gdb_sys_1107_1/gdb_sys_1107_1.sdk/gdb_sys_1107_wrapper_hw_platform_0/gdb_sys_1107_wrapper.bit

targets -set -nocase -filter {name =~"APU*" && jtag_cable_name =~ "Platform Cable USB 00000000000000"} -index 0

loadhw -hw E:/vivado_proj/gdb_sys_1107_1/gdb_sys_1107_1.sdk/gdb_sys_1107_wrapper_hw_platform_0/system.hdf -mem-ranges [list {0x40000000 0xbfffffff}]

configparams force-mem-access 1

targets -set -nocase -filter {name =~"APU*" && jtag_cable_name =~ "Platform Cable USB 00000000000000"} -index 0

ps7_init

----------------End of Script----------------

请问这是什么错误呢?

0 项奖励
1 条回复
Xilinx Employee
Xilinx Employee

回复: 程序一直停在ps7_init

ps7_init里面有一些poll操作,就是轮询某些状态寄存器,比如检测DDRC的状态寄存器,以确认DDR初始化正常。当某些状态位没有达到预期的时候,它就会一致在那里轮询,现象就是卡在ps7_init里了。你在sdk里面加载程序的时候,sdk会自动加载ps7_init.tcl,它里面有ps7_init()。Fsbl代码里也会引用ps7_init(),这个函数定义在ps7_init.c里面。如果你要debug卡在ps7_init()里面哪一行代码,建议你在sdk里面debug fsbl,全速跑,然后暂停,看看停在哪一行代码,就知道哪里出问题了。

0 项奖励