Vijay_sr05 Posted February 20, 2018 Share Posted February 20, 2018 Hello, I am executing the Zybo Z7 Pcam 5C Demo example program using Vivado 2016.4 and I'm getting an - AP transaction error. Error while launching program: Memory write error at 0x100000. AP transaction timeout Below is the demo program. Kindly help! https://reference.digilentinc.com/learn/programmable-logic/tutorials/github-demos/start 14:06:13 INFO : 'targets -set -filter {jtag_cable_name =~ "Digilent Zybo Z7 210351A6CA01A" && level==0} -index 1' command is executed. 14:06:13 INFO : 'fpga -state' command is executed. 14:06:13 INFO : Connected to target on host '127.0.0.1' and port '3121'. 14:06:14 INFO : Jtag cable 'Digilent Zybo Z7 210351A6CA01A' is selected. 14:06:14 INFO : 'jtag frequency' command is executed. 14:06:14 INFO : Sourcing of 'C:/Users/alex/Desktop/Zybo-Z7-20-pcam-5c/sdk/system_wrapper_hw_platform_0/ps7_init.tcl' is done. 14:06:14 INFO : Context for 'APU' is selected. 14:06:14 INFO : Hardware design information is loaded from 'C:/Users/alex/Desktop/Zybo-Z7-20-pcam-5c/sdk/system_wrapper_hw_platform_0/system.hdf'. 14:06:15 INFO : Context for 'APU' is selected. 14:06:17 INFO : 'stop' command is executed. 14:06:17 ERROR : AP transaction error, DAP status f0000021 Link to comment Share on other sites More sharing options...
jpeyron Posted February 21, 2018 Share Posted February 21, 2018 Hi @Vijay_sr05, I was able to generate a bitstream without and issue in Vivado 2016.4. I then export the hardware incluting the bitstream and launch sdk from Vivado. Once SDK is loaded I import the applications from the SDK folder. I then program the fpga. Next I right click on pcam_vdma_hdmi and run as->launch on Hardware(system debugger). It loaded onto my Zybo-Z7-20 without an issue. I have included some screen shots. The applications are greyed out from my import screen shot since I had already imported the applications to my project. cheers, Jon Spoiler 11:35:49 INFO : Registering command handlers for SDK TCF services 11:35:50 INFO : Launching XSCT server: xsct.bat -interactive C:\Users\jpeyron\Desktop\Zybo-Z7-20-pcam-5c-master\proj\pcam-5c.sdk\temp_xsdb_launch_script.tcl 11:35:52 INFO : XSCT server has started successfully. 11:35:52 INFO : Successfully done setting XSCT server connection channel 11:36:00 INFO : Successfully done setting SDK workspace 11:36:00 INFO : Processing command line option -hwspec C:/Users/jpeyron/Desktop/Zybo-Z7-20-pcam-5c-master/proj/pcam-5c.sdk/system_wrapper.hdf. 11:37:16 INFO : BSP Project P/fsbl_bsp has been successfully migrated. 11:37:18 INFO : BSP Project P/pcam_vdma_hdmi_bsp has been successfully migrated. 11:43:08 INFO : Connected to target on host '127.0.0.1' and port '3121'. 11:43:09 INFO : 'targets -set -filter {jtag_cable_name =~ "Digilent Zybo Z7 210351A6B2EBA" && level==0} -index 1' command is executed. 11:43:12 INFO : FPGA configured successfully with bitstream "C:/Users/jpeyron/Desktop/Zybo-Z7-20-pcam-5c-master/proj/pcam-5c.sdk/system_wrapper_hw_platform_0/system_wrapper.bit" 11:43:26 INFO : 'targets -set -filter {jtag_cable_name =~ "Digilent Zybo Z7 210351A6B2EBA" && level==0} -index 1' command is executed. 11:43:26 INFO : 'fpga -state' command is executed. 11:43:26 INFO : Connected to target on host '127.0.0.1' and port '3121'. 11:43:26 INFO : Jtag cable 'Digilent Zybo Z7 210351A6B2EBA' is selected. 11:43:26 INFO : 'jtag frequency' command is executed. 11:43:26 INFO : Sourcing of 'C:/Users/jpeyron/Desktop/Zybo-Z7-20-pcam-5c-master/proj/pcam-5c.sdk/system_wrapper_hw_platform_0/ps7_init.tcl' is done. 11:43:26 INFO : Context for 'APU' is selected. 11:43:26 INFO : Hardware design information is loaded from 'C:/Users/jpeyron/Desktop/Zybo-Z7-20-pcam-5c-master/proj/pcam-5c.sdk/system_wrapper_hw_platform_0/system.hdf'. 11:43:26 INFO : Context for 'APU' is selected. 11:43:26 INFO : 'stop' command is executed. 11:43:26 INFO : 'ps7_init' command is executed. 11:43:26 INFO : 'ps7_post_config' command is executed. 11:43:26 INFO : Context for processor 'ps7_cortexa9_0' is selected. 11:43:27 INFO : Processor reset is completed for 'ps7_cortexa9_0'. 11:43:27 INFO : Context for processor 'ps7_cortexa9_0' is selected. 11:43:28 INFO : The application 'C:/Users/jpeyron/Desktop/Zybo-Z7-20-pcam-5c-master/sdk/pcam_vdma_hdmi/Debug/pcam_vdma_hdmi.elf' is downloaded to processor 'ps7_cortexa9_0'. 11:43:28 INFO : ----------------XSDB Script---------------- connect -url tcp:127.0.0.1:3121 source C:/Users/jpeyron/Desktop/Zybo-Z7-20-pcam-5c-master/proj/pcam-5c.sdk/system_wrapper_hw_platform_0/ps7_init.tcl targets -set -nocase -filter {name =~"APU*" && jtag_cable_name =~ "Digilent Zybo Z7 210351A6B2EBA"} -index 0 loadhw C:/Users/jpeyron/Desktop/Zybo-Z7-20-pcam-5c-master/proj/pcam-5c.sdk/system_wrapper_hw_platform_0/system.hdf targets -set -nocase -filter {name =~"APU*" && jtag_cable_name =~ "Digilent Zybo Z7 210351A6B2EBA"} -index 0 stop ps7_init ps7_post_config targets -set -nocase -filter {name =~ "ARM*#0" && jtag_cable_name =~ "Digilent Zybo Z7 210351A6B2EBA"} -index 0 rst -processor targets -set -nocase -filter {name =~ "ARM*#0" && jtag_cable_name =~ "Digilent Zybo Z7 210351A6B2EBA"} -index 0 dow C:/Users/jpeyron/Desktop/Zybo-Z7-20-pcam-5c-master/sdk/pcam_vdma_hdmi/Debug/pcam_vdma_hdmi.elf ----------------End of Script---------------- 11:43:28 INFO : Memory regions updated for context APU 11:43:28 INFO : Context for processor 'ps7_cortexa9_0' is selected. 11:43:28 INFO : 'con' command is executed. 11:43:28 INFO : ----------------XSDB Script (After Launch)---------------- targets -set -nocase -filter {name =~ "ARM*#0" && jtag_cable_name =~ "Digilent Zybo Z7 210351A6B2EBA"} -index 0 con ----------------End of Script---------------- 11:43:28 INFO : Launch script is exported to file 'C:\Users\jpeyron\Desktop\Zybo-Z7-20-pcam-5c-master\proj\pcam-5c.sdk\.sdk\launch_scripts\xilinx_c-c++_application_(system_debugger)\system_debugger_using_debug_pcam_vdma_hdmi.elf_on_local.tcl' Link to comment Share on other sites More sharing options...
Vijay_sr05 Posted February 21, 2018 Author Share Posted February 21, 2018 Hello @jpeyron Thank for the reply. I am following the exact same steps. When I run as "Launch on hardware (system debugger)", it executes for 99% and then fails. Please see the attached images. 14:43:31 INFO : Processor reset is completed for 'ps7_cortexa9_0'. 14:43:31 INFO : Context for processor 'ps7_cortexa9_0' is selected. 14:43:34 ERROR : Memory write error at 0x100000. AP transaction timeout Thanks. Link to comment Share on other sites More sharing options...
jpeyron Posted February 21, 2018 Share Posted February 21, 2018 Hi @Vijay_sr05, I would exit SDK and delete the pcam-5c.sdk file in the proj folder. Then I would go to the vivado project again and re-export the hardware including the bitstream and launch the sdk from vivado. Then re-import the applications and see if this solves the issue. You are also programming the fpga before running the application as shown in the screen shot below. thank you, Jon Link to comment Share on other sites More sharing options...
Vijay_sr05 Posted February 22, 2018 Author Share Posted February 22, 2018 Hello @jpeyron Below is the SDK log, after exporting the sdk and reading the files, I did "launch on h/w" and then programmed the FPGA. This doesn't seem to be right to me, but there is no error. Below is the SDK log. Also I assume this demo program will turn the camera on and display on a HDMI monitor and this doesn't seem to work. I assume once I run, launch on hardware, the camera should turn on and I should see the display on the hdmi monitor? Appreciate any help! 17:01:46 INFO : ----------------XSDB Script---------------- connect -url tcp:127.0.0.1:3121 source C:/Users/vramesh/Desktop/Zybo-Z7-20-pcam-5c/proj/pcam-5c.sdk/system_wrapper_hw_platform_0/ps7_init.tcl targets -set -nocase -filter {name =~"APU*" && jtag_cable_name =~ "Digilent Zybo Z7 210351A6CA01A"} -index 0 ----------------End of Script---------------- 17:02:11 INFO : 'targets -set -filter {jtag_cable_name =~ "Digilent Zybo Z7 210351A6CA01A" && level==0} -index 1' command is executed. 17:02:11 INFO : 'fpga -state' command is executed. 17:02:11 INFO : Connected to target on host '127.0.0.1' and port '3121'. 17:02:12 INFO : Jtag cable 'Digilent Zybo Z7 210351A6CA01A' is selected. 17:02:12 INFO : 'jtag frequency' command is executed. 17:02:12 INFO : Sourcing of 'C:/Users/vramesh/Desktop/Zybo-Z7-20-pcam-5c/proj/pcam-5c.sdk/system_wrapper_hw_platform_0/ps7_init.tcl' is done. 17:02:13 INFO : Context for 'APU' is selected. 17:02:13 INFO : Hardware design information is loaded from 'C:/Users/vramesh/Desktop/Zybo-Z7-20-pcam-5c/proj/pcam-5c.sdk/system_wrapper_hw_platform_0/system.hdf'. 17:02:14 INFO : Context for 'APU' is selected. 17:02:15 INFO : 'stop' command is executed. 17:02:24 INFO : 'ps7_init' command is executed. 17:02:24 INFO : 'ps7_post_config' command is executed. 17:02:24 INFO : Context for processor 'ps7_cortexa9_0' is selected. 17:02:25 INFO : Processor reset is completed for 'ps7_cortexa9_0'. 17:02:25 INFO : Context for processor 'ps7_cortexa9_0' is selected. 17:02:30 INFO : The application 'C:/Users/vramesh/Desktop/Zybo-Z7-20-pcam-5c/proj/pcam-5c.sdk/pcam_vdma_hdmi/Debug/pcam_vdma_hdmi.elf' is downloaded to processor 'ps7_cortexa9_0'. 17:02:30 INFO : ----------------XSDB Script---------------- connect -url tcp:127.0.0.1:3121 source C:/Users/vramesh/Desktop/Zybo-Z7-20-pcam-5c/proj/pcam-5c.sdk/system_wrapper_hw_platform_0/ps7_init.tcl targets -set -nocase -filter {name =~"APU*" && jtag_cable_name =~ "Digilent Zybo Z7 210351A6CA01A"} -index 0 loadhw C:/Users/vramesh/Desktop/Zybo-Z7-20-pcam-5c/proj/pcam-5c.sdk/system_wrapper_hw_platform_0/system.hdf targets -set -nocase -filter {name =~"APU*" && jtag_cable_name =~ "Digilent Zybo Z7 210351A6CA01A"} -index 0 stop ps7_init ps7_post_config targets -set -nocase -filter {name =~ "ARM*#0" && jtag_cable_name =~ "Digilent Zybo Z7 210351A6CA01A"} -index 0 rst -processor targets -set -nocase -filter {name =~ "ARM*#0" && jtag_cable_name =~ "Digilent Zybo Z7 210351A6CA01A"} -index 0 dow C:/Users/vramesh/Desktop/Zybo-Z7-20-pcam-5c/proj/pcam-5c.sdk/pcam_vdma_hdmi/Debug/pcam_vdma_hdmi.elf ----------------End of Script---------------- 17:02:31 INFO : Memory regions updated for context APU 17:02:31 INFO : Context for processor 'ps7_cortexa9_0' is selected. 17:02:31 INFO : 'con' command is executed. 17:02:31 INFO : ----------------XSDB Script (After Launch)---------------- targets -set -nocase -filter {name =~ "ARM*#0" && jtag_cable_name =~ "Digilent Zybo Z7 210351A6CA01A"} -index 0 con ----------------End of Script---------------- 17:02:31 INFO : Launch script is exported to file 'C:\Users\vramesh\Desktop\Zybo-Z7-20-pcam-5c\proj\pcam-5c.sdk\.sdk\launch_scripts\xilinx_c-c++_application_(system_debugger)\system_debugger_using_debug_pcam_vdma_hdmi.elf_on_local.tcl' 17:03:05 INFO : Connected to target on host '127.0.0.1' and port '3121'. 17:03:05 INFO : 'targets -set -filter {jtag_cable_name =~ "Digilent Zybo Z7 210351A6CA01A" && level==0} -index 1' command is executed. 17:03:08 INFO : FPGA configured successfully with bitstream "C:/Users/vramesh/Desktop/Zybo-Z7-20-pcam-5c/proj/pcam-5c.sdk/system_wrapper_hw_platform_0/system_wrapper.bit" Thanks, Vijay Link to comment Share on other sites More sharing options...
jpeyron Posted February 22, 2018 Share Posted February 22, 2018 Hi @Vijay_sr05, To clarify, you are first programming the FPGA and then running the application(run as->launch on hardware(system debugger))? thank you, Jon Link to comment Share on other sites More sharing options...
Vijay_sr05 Posted February 22, 2018 Author Share Posted February 22, 2018 Hi @jpeyron Yes. That's correct. I'm following the step 5.3 and 5.4 of SDK and the link is below. https://reference.digilentinc.com/learn/programmable-logic/tutorials/github-demos/start Thanks,Vijay Link to comment Share on other sites More sharing options...
jpeyron Posted February 22, 2018 Share Posted February 22, 2018 Hi @Vijay_sr05, Is the mode jumper JP5 on the Zybo-Z7-20 set to JTAG? Did you change anything in the zynq processor in the block design in the Vivado 2016.4 project? Are there any errors when you generated a bitstream in vivado? Any errors in the sdk under problem tab? If so can you attach screen shots? Are you able to make a project using the preset board files for the Zybo-Z7-20 in vivado 2016.4? thank you, Jon Link to comment Share on other sites More sharing options...
Vijay_sr05 Posted February 22, 2018 Author Share Posted February 22, 2018 Hi @jpeyron Thank you so much for your inputs! I was able to fire up the camera. This board is pretty cool. There were 2 issues the mode jumper JP5 on the Zybo-Z7-20 was not set to JTAG and second was the project files were open in Vivado 2017 (the IP's were changed by mistake I believe) and then later I got a new copy of the demo and re-ran the whole thing. Appreciate your help. Vijay Link to comment Share on other sites More sharing options...
Question
Vijay_sr05
Hello,
I am executing the Zybo Z7 Pcam 5C Demo example program using Vivado 2016.4 and I'm getting an - AP transaction error.
Error while launching program: Memory write error at 0x100000. AP transaction timeout
Below is the demo program. Kindly help!
https://reference.digilentinc.com/learn/programmable-logic/tutorials/github-demos/start
14:06:13 INFO : 'targets -set -filter {jtag_cable_name =~ "Digilent Zybo Z7 210351A6CA01A" && level==0} -index 1' command is executed.
14:06:13 INFO : 'fpga -state' command is executed.
14:06:13 INFO : Connected to target on host '127.0.0.1' and port '3121'.
14:06:14 INFO : Jtag cable 'Digilent Zybo Z7 210351A6CA01A' is selected.
14:06:14 INFO : 'jtag frequency' command is executed.
14:06:14 INFO : Sourcing of 'C:/Users/alex/Desktop/Zybo-Z7-20-pcam-5c/sdk/system_wrapper_hw_platform_0/ps7_init.tcl' is done.
14:06:14 INFO : Context for 'APU' is selected.
14:06:14 INFO : Hardware design information is loaded from 'C:/Users/alex/Desktop/Zybo-Z7-20-pcam-5c/sdk/system_wrapper_hw_platform_0/system.hdf'.
14:06:15 INFO : Context for 'APU' is selected.
14:06:17 INFO : 'stop' command is executed.
14:06:17 ERROR : AP transaction error, DAP status f0000021
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.