• Content Count

  • Joined

  • Last visited

About AndyCap

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. In case anyone else is as stupid as me and has this problem, there are two hammer icons. Use the one in the Platform.spr window that opens not the one in the main toolbar.
  2. Hi Guys, I have followed all the steps here: When the project is imported into SDX I cannot build the platform, the hammer icon is greyed out and building via menu has no effect. Has anyone got any idea of what might be going wrong? Many thanks Andy
  3. Here you go:
  4. Ok, looks like the issue is fixed in the more recent version of pl330.c: Maybe other changes were needed for the locking stuff. I will get-together the patch files and cfg files needed to get it all working from a 2017.4 build and post it somewhere...
  5. Hi @Ciprian, I have had a poke around in the debugger and the issue is probably related to the DMA as you say. I found that placing a breakpoint at: static int pl330_terminate_all(struct dma_chan *chan) "cured" the issue when the debugger was continued. So I looked for updates to this function and there was a patch for the pl330 lock code, unfortunately this doesn't fix the problem. Adding a 1000us delay before the lock in the code also "cures" the problem and everything then works for the under-run recovery. I tried smaller delays but 1000us is needed to make things work, this is obviously not a solution to the issue and wondered if you may have any more pointers or ideas why this delay fixes the issue? Cheers Andy
  6. Hi @Ciprian, Thanks very much for the answer and the info, I will start looking there. Cheers Andy
  7. The example code also doesn't work. It is using the LineOut, not much good as the Zybo hasn't got this. Needs changing to use the headphone out. The function of button 1 and button 3 are also swapped.
  8. Hi Guys, There is an issue with the python script in the git repository:"%s\config.ini" % script_dir) This doesn't work on Linux, the slash is wrong. Cheers Andy
  9. Hi Guys, Ok, I spoke too soon! There is a bit of a problem where the Zybo audio device doesn't recover from an underrun, after recovery the play buffer is never drained and it hangs when full on write to the device. I have checked that the issue is not a general alsa issue by setting up a gadget usb audio device to send over USB, this doesn't have the same issue. Has anyone got any ideas of where to start looking? Many thanks Andy
  10. The above mentioned patch fixes it up and it all seems to run ok.
  11. Hi, Thanks very much for the info, as you say Generate bitstream works when the HDL wrapper is created. Many thanks Andy
  12. Hi Guys, The Zybo-Z7-20-base-linux project seems broken, or I am going something wrong: git clone --recursive In Vivado 2017.4 tcl command window: /home/andrewcapon/Development/Zybo/Zybo-Z7-20-base-linux/proj source ./create_project.tcl Log from this: start_gui cd /home/andrewcapon/Development/Zybo/Zybo-Z7-20-base-linux/proj source ./create_project.tcl # set proj_name "base-lin" # if {[info exists ::create_path]} { # set dest_dir $::create_path # } else { # set dest_dir [file normalize [file dirname [info script]]] # } # puts "INFO: Creating new project in $dest_dir" INFO: Creating new project in /home/andrewcapon/Development/Zybo/Zybo-Z7-20-base-linux/proj # cd $dest_dir # set part "xc7z020clg400-1" # set brd_part "" # set origin_dir ".." # set orig_proj_dir "[file normalize "$origin_dir/proj"]" # set src_dir $origin_dir/src # set repo_dir $origin_dir/repo # create_project $proj_name $dest_dir INFO: [IP_Flow 19-234] Refreshing IP repositories INFO: [IP_Flow 19-1704] No user IP repositories specified INFO: [IP_Flow 19-2313] Loaded Vivado IP repository '/home/andrewcapon/Xilinx2017.4/Vivado/2017.4/data/ip'. create_project: Time (s): cpu = 00:00:14 ; elapsed = 00:00:06 . Memory (MB): peak = 6164.723 ; gain = 89.504 ; free physical = 152 ; free virtual = 13506 # set proj_dir [get_property directory [current_project]] # set obj [get_projects $proj_name] # set_property "default_lib" "xil_defaultlib" $obj # set_property "part" $part $obj # set_property "board_part" $brd_part $obj # set_property "simulator_language" "Mixed" $obj # set_property "target_language" "VHDL" $obj # set_property "corecontainer.enable" "0" $obj # set_property "ip_cache_permissions" "read write" $obj # set_property "ip_output_repo" "[file normalize "$origin_dir/repo/cache"]" $obj # if {[string equal [get_filesets -quiet sources_1] ""]} { # create_fileset -srcset sources_1 # } # if {[string equal [get_filesets -quiet constrs_1] ""]} { # create_fileset -constrset constrs_1 # } # set obj [get_filesets sources_1] # set_property "ip_repo_paths" "[file normalize $repo_dir]" $obj # update_ip_catalog -rebuild INFO: [IP_Flow 19-234] Refreshing IP repositories INFO: [IP_Flow 19-1700] Loaded user IP repository '/home/andrewcapon/Development/Zybo/Zybo-Z7-20-base-linux/repo'. # add_files -quiet $src_dir/hdl # add_files -quiet [glob -nocomplain ../src/ip/*/*.xci] # add_files -fileset constrs_1 -quiet $src_dir/constraints # if {[string equal [get_runs -quiet synth_1] ""]} { # create_run -name synth_1 -part $part -flow {Vivado Synthesis 2017} -strategy "Vivado Synthesis Defaults" -constrset constrs_1 # } else { # set_property strategy "Vivado Synthesis Defaults" [get_runs synth_1] # set_property flow "Vivado Synthesis 2017" [get_runs synth_1] # } # set obj [get_runs synth_1] # set_property "part" $part $obj # current_run -synthesis [get_runs synth_1] # if {[string equal [get_runs -quiet impl_1] ""]} { # create_run -name impl_1 -part $part -flow {Vivado Implementation 2017} -strategy "Performance_ExtraTimingOpt" -constrset constrs_1 -parent_run synth_1 # } else { # set_property strategy "Performance_ExtraTimingOpt" [get_runs impl_1] # set_property flow "Vivado Implementation 2017" [get_runs impl_1] # } # set obj [get_runs impl_1] # set_property "part" $part $obj # set_property -name "steps.route_design.args.directive" -value "RuntimeOptimized" -objects $obj # current_run -implementation [get_runs impl_1] # puts "INFO: Project created:$proj_name" INFO: Project created:base-lin # set bd_list [glob -nocomplain $src_dir/bd/*/*.bd] # if {[llength $bd_list] != 0} { # add_files -norecurse -quiet -fileset sources_1 [glob -nocomplain $src_dir/bd/*/*.bd] # open_bd_design [glob -nocomplain $src_dir/bd/*/*.bd] # set design_name [get_bd_designs] # set file "$origin_dir/src/bd/$design_name/$" # set file [file normalize $file] # set file_obj [get_files -of_objects [get_filesets sources_1] [list "*$file"]] # if { ![get_property "is_locked" $file_obj] } { # set_property "synth_checkpoint_mode" "Hierarchical" $file_obj # } # # # Generate the wrapper # set design_name [get_bd_designs] # add_files -norecurse [make_wrapper -files [get_files $] -top -force] # # set obj [get_filesets sources_1] # set_property "top" "${design_name}_wrapper" $obj # } Adding cell -- - pwm_rgb Adding cell -- - axi_dynclk_0 Adding cell -- - axi_i2s_adi_0 Adding cell -- - dvi2rgb_1 Adding cell -- - rgb2dvi_1 Adding cell -- - axi_gpio_led Adding cell -- - axi_gpio_sw_btn Adding cell -- - axi_gpio_video Adding cell -- - axi_vdma_0 Adding cell -- - axi_vdma_1 Adding cell -- - axis_subset_converter_in Adding cell -- - axis_subset_converter_out Adding cell -- - clk_wiz_0 Adding cell -- - proc_sys_reset_0 Adding cell -- - processing_system7_0 Adding cell -- - rst_ps7_0_100M Adding cell -- - rst_ps7_0_133M Adding cell -- - util_ds_buf_fclk1 Adding cell -- - v_axi4s_vid_out_0 Adding cell -- - v_tc_in Adding cell -- - v_tc_out Adding cell -- - v_vid_in_axi4s_0 Adding cell -- - xadc_wiz_0 Adding cell -- - xlconcat_0 Adding cell -- - xlconstant_0 Adding cell -- - xlconstant_1 Adding cell -- - axis_subset_converter_0 Adding cell -- - axi_iic_0 Adding cell -- - PS_GPIO_0 Adding cell -- - PS_GPIO_2 Adding cell -- - axi_gpio_eth Adding cell -- - PS_GPIO_3 Adding cell -- - axi_data_fifo_0 Adding cell -- - mipi_csi2_rx_subsystem_0 Adding cell -- - v_frmbuf_wr_0 WARNING: [BD 41-1731] Type mismatch between connected pins: /axi_dynclk_0/LOCKED_O(undef) and /rgb2dvi_1/aRst_n(rst) WARNING: [BD 41-1731] Type mismatch between connected pins: /clk_wiz_0/clk_out1(clk) and /axi_i2s_adi_0/DATA_CLK_I(undef) WARNING: [BD 41-1731] Type mismatch between connected pins: /dvi2rgb_1/aPixelClkLckd(undef) and /proc_sys_reset_0/aux_reset_in(rst) Adding cell -- - auto_pc Adding cell -- - xbar Adding cell -- - auto_pc Adding cell -- - xbar Adding cell -- - m00_regslice Adding cell -- - auto_pc Adding cell -- - s01_regslice Adding cell -- - s00_regslice Successfully read diagram <system> from BD file <../src/bd/system/> open_bd_design: Time (s): cpu = 00:00:12 ; elapsed = 00:00:08 . Memory (MB): peak = 6342.469 ; gain = 70.484 ; free physical = 167 ; free virtual = 13357 WARNING: [Vivado 12-818] No files matched '*/home/andrewcapon/Development/Zybo/Zybo-Z7-20-base-linux/src/bd/bd_0ac3 system/bd_0ac3' ERROR: [Common 17-55] 'get_property' expects at least one object. Resolution: If [get_<value>] was used to populate the object, check to make sure this command returns at least one valid object. update_compile_order -fileset sources_1 Generating bitstream: launch_runs impl_1 -to_step write_bitstream -jobs 12 [filemgmt 20-730] Could not find a top module in the fileset sources_1. Resolution: With the gui up, review the source files in the Sources window. Use Add Sources to add any needed sources. If the files are disabled, enable them. You can also select the file and choose Set Used In from the pop-up menu. Review if they are being used at the proper points of the flow. [Common 17-70] Application Exception: Top module not set for fileset 'sources_1'. Please ensure that a valid value is provided for 'top'. The value for 'top' can be set/changed using the 'Top Module Name' field under 'Project Settings', or using the 'set_property top' Tcl command (e.g. set_property top <name> [current_fileset]). Has anyone got any ideas, I'm guessing the problem is: WARNING: [Vivado 12-818] No files matched '*/home/andrewcapon/Development/Zybo/Zybo-Z7-20-base-linux/src/bd/bd_0ac3 system/bd_0ac3' Thanks for any help. Andy