取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
Highlighted
Visitor
Visitor
422 次查看
注册日期: ‎06-22-2020

XC7Z020-1CLG484I4493 + MT41K64M16TW-107 主芯片板无法跑DEMO HELLOWORLD例程

跳至解决方案

最小核心部分为:XC7Z020-1CLG484I4493 + MT41K64M16TW-107

VIVADO在一切配置好导入SDK后,RUN后SDK LOG显示:

00:15:20 INFO : Connected to target on host '127.0.0.1' and port '3121'.
00:15:21 INFO : Jtag cable 'Digilent JTAG-SMT2 210251A08870' is selected.
00:15:21 INFO : 'jtag frequency' command is executed.
00:15:21 INFO : Sourcing of 'F:/LASTTEST/LASTTRY/LASTTRY.sdk/TEST_wrapper_hw_platform_0/ps7_init.tcl' is done.
00:15:21 INFO : Context for 'APU' is selected.
00:15:21 INFO : System reset is completed.
00:15:24 INFO : 'after 3000' command is executed.
00:15:24 INFO : 'targets -set -filter {jtag_cable_name =~ "Digilent JTAG-SMT2 210251A08870" && level==0} -index 1' command is executed.
00:15:27 INFO : FPGA configured successfully with bitstream "F:/LASTTEST/LASTTRY/LASTTRY.sdk/TEST_wrapper_hw_platform_0/TEST_wrapper.bit"
00:15:27 INFO : Context for 'APU' is selected.
00:15:29 INFO : Hardware design information is loaded from 'F:/LASTTEST/LASTTRY/LASTTRY.sdk/TEST_wrapper_hw_platform_0/system.hdf'.
00:15:29 INFO : 'configparams force-mem-access 1' command is executed.
00:15:29 INFO : Context for 'APU' is selected.
00:15:29 INFO : 'ps7_init' command is executed.
00:15:29 INFO : 'ps7_post_config' command is executed.
00:15:29 INFO : 'configparams force-mem-access 0' command is executed.
00:15:29 INFO : ----------------XSDB Script----------------
connect -url tcp:127.0.0.1:3121
source F:/LASTTEST/LASTTRY/LASTTRY.sdk/TEST_wrapper_hw_platform_0/ps7_init.tcl
targets -set -nocase -filter {name =~"APU*" && jtag_cable_name =~ "Digilent JTAG-SMT2 210251A08870"} -index 0
rst -system
after 3000
targets -set -filter {jtag_cable_name =~ "Digilent JTAG-SMT2 210251A08870" && level==0} -index 1
fpga -file F:/LASTTEST/LASTTRY/LASTTRY.sdk/TEST_wrapper_hw_platform_0/TEST_wrapper.bit
targets -set -nocase -filter {name =~"APU*" && jtag_cable_name =~ "Digilent JTAG-SMT2 210251A08870"} -index 0
loadhw -hw F:/LASTTEST/LASTTRY/LASTTRY.sdk/TEST_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 =~ "Digilent JTAG-SMT2 210251A08870"} -index 0
ps7_init
ps7_post_config
configparams force-mem-access 0
----------------End of Script----------------

00:15:29 INFO : Disconnected from the channel tcfchan#5.

RUN后出现以上LOG。配置的PS MIO[48:49]实际UART1无输出,请教下从这个LOG能看出什么问题吗,也没什么特殊的配置

configparams force-mem-access 0  和 00:15:29 INFO : Disconnected from the channel tcfchan#5什么意思呢

 

0 项奖励
1 解答

已接受的解答
Highlighted
Xilinx Employee
Xilinx Employee
94 次查看
注册日期: ‎06-19-2019

那很可能是DDR有问题,可能是配置问题,也可能是硬件问题。

你直接跑一下裸核的dram test看看。

------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
8 回复数
Highlighted
Xilinx Employee
Xilinx Employee
406 次查看
注册日期: ‎06-19-2019

这个是SDK后台运行的log,没有看到有error报出来。

你打印不显示,可以先检查以下几点

1)波特率是否匹配,vivado中的设置和你电脑上串口终端的配置是否一致

2)查看bsp包配置项里,是否选择了uart1作为你的stdio的输入输出

3)检查你的DDR,是否能正常工作,可以将运行空间都切换到bram上试试看。

------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------
0 项奖励
Highlighted
Visitor
Visitor
385 次查看
注册日期: ‎06-22-2020

1.vivado波特率和串口工具均设置为115200

2.MIO[48:49]已经勾选

3.DDR3这块应该OK,检测过的;但是不确定自己选的相近的型号会不会有影响(刚开始搞这个,你说的运行空间都切换到bram上暂时还不会)

 

0d58195f2dbd722b7e2a8b55f8a760e8.jpgb851a367ce44a3454b19b59ce153c9bf.jpgd95ffe9e5a85543d7106abe751379ca8.jpg8e88421c33708eae83c672d8d00c7992(1).jpg捕获.JPG

0 项奖励
Highlighted
Xilinx Employee
Xilinx Employee
372 次查看
注册日期: ‎06-19-2019

在SDK中将lscript.ld里的所有的section都切到OCM的运行空间中去。

Capture10.PNG

------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------
0 项奖励
Highlighted
Visitor
Visitor
248 次查看
注册日期: ‎06-22-2020

您意思是我在DDR3上运行有问题了?

不好意思,请问下怎么切到OCM上运行,能给点详细信息嘛,刚接触这块,感谢

 

 

0 项奖励
Visitor
Visitor
242 次查看
注册日期: ‎06-22-2020

请问下所有Section 在MEMORY REGION中全部改为ps7_ram_0或者ps7_ram_1 ?所有么

0 项奖励
Highlighted
Visitor
Visitor
205 次查看
注册日期: ‎06-22-2020

11.jpg

已经改好了,回头我试下,请问下我DDR3L这边配置可能有问题吗?

0 项奖励
Highlighted
Visitor
Visitor
145 次查看
注册日期: ‎06-22-2020

我改成OCM上运行是OK的,LOG正常看到

我重新把寄存器到内存的映射改为DDR,串口又变为无法打印LOG,目前LOG没有报JTAG中断什么的

SDK LOG如下:

13:24:38 INFO : Registering command handlers for SDK TCF services
13:24:38 INFO : Launching XSCT server: xsct.bat -interactive F:\LASTTEST\128M-TRY\128M-TRY.sdk\temp_xsdb_launch_script.tcl
13:24:38 INFO : XSCT server has started successfully.
13:24:39 INFO : Processing command line option -hwspec F:/LASTTEST/128M-TRY/128M-TRY.sdk/PSLED_wrapper.hdf.
13:24:39 INFO : Successfully done setting XSCT server connection channel
13:24:39 INFO : Successfully done setting SDK workspace
13:29:26 INFO : Connected to target on host '127.0.0.1' and port '3121'.
13:29:27 INFO : Jtag cable 'Digilent JTAG-SMT2 210251A08870' is selected.
13:29:27 INFO : 'jtag frequency' command is executed.
13:29:27 INFO : Sourcing of 'F:/LASTTEST/128M-TRY/128M-TRY.sdk/PSLED_wrapper_hw_platform_0/ps7_init.tcl' is done.
13:29:27 INFO : Context for 'APU' is selected.
13:29:27 INFO : System reset is completed.
13:29:30 INFO : 'after 3000' command is executed.
13:29:30 INFO : 'targets -set -filter {jtag_cable_name =~ "Digilent JTAG-SMT2 210251A08870" && level==0} -index 1' command is executed.
13:29:33 INFO : FPGA configured successfully with bitstream "F:/LASTTEST/128M-TRY/128M-TRY.sdk/PSLED_wrapper_hw_platform_0/PSLED_wrapper.bit"
13:29:33 INFO : Context for 'APU' is selected.
13:29:33 INFO : Hardware design information is loaded from 'F:/LASTTEST/128M-TRY/128M-TRY.sdk/PSLED_wrapper_hw_platform_0/system.hdf'.
13:29:33 INFO : 'configparams force-mem-access 1' command is executed.
13:29:33 INFO : Context for 'APU' is selected.
13:29:33 INFO : 'ps7_init' command is executed.
13:29:33 INFO : 'ps7_post_config' command is executed.
13:29:33 INFO : 'configparams force-mem-access 0' command is executed.
13:29:33 INFO : ----------------XSDB Script----------------
connect -url tcp:127.0.0.1:3121
source F:/LASTTEST/128M-TRY/128M-TRY.sdk/PSLED_wrapper_hw_platform_0/ps7_init.tcl
targets -set -nocase -filter {name =~"APU*" && jtag_cable_name =~ "Digilent JTAG-SMT2 210251A08870"} -index 0
rst -system
after 3000
targets -set -filter {jtag_cable_name =~ "Digilent JTAG-SMT2 210251A08870" && level==0} -index 1
fpga -file F:/LASTTEST/128M-TRY/128M-TRY.sdk/PSLED_wrapper_hw_platform_0/PSLED_wrapper.bit
targets -set -nocase -filter {name =~"APU*" && jtag_cable_name =~ "Digilent JTAG-SMT2 210251A08870"} -index 0
loadhw -hw F:/LASTTEST/128M-TRY/128M-TRY.sdk/PSLED_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 =~ "Digilent JTAG-SMT2 210251A08870"} -index 0
ps7_init
ps7_post_config
configparams force-mem-access 0
----------------End of Script----------------

13:29:34 INFO : Memory regions updated for context APU
13:29:34 INFO : Launch script is exported to file 'F:\LASTTEST\128M-TRY\128M-TRY.sdk\.sdk\launch_scripts\xilinx_c-c++_application_(system_debugger)\system_debugger_on_local.tcl'

 

 

下图是OCM正常UART1出LOG的20.jpg

 

21.jpg

 

0 项奖励
Highlighted
Xilinx Employee
Xilinx Employee
95 次查看
注册日期: ‎06-19-2019

那很可能是DDR有问题,可能是配置问题,也可能是硬件问题。

你直接跑一下裸核的dram test看看。

------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
如果提供的信息能解决您的问题,请标记为“接受为解决方案”。
如果您认为帖子有帮助,请点击“奖励”。谢谢!
-------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励