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!

cancel
Showing results for 
Search instead for 
Did you mean: 
Explorer
Explorer
9,699 Views
Registered: ‎11-17-2015

How do I debug on the zvik_camera_linux_app in xapp794?

Jump to solution

I am wondering whether my method is correct for my modifications to XAPP794 zvik_camera_linux_app? 

 

I have USB2UART at J17, micro USB to digilent, and LAN with 192.168.1.21 on my desktop. 

 

When my SD card boots with the custom binary from XAPP794.zip, I need to run passwd (to root/root) then ./launch_my_app.sh before my Remote Systems Explorer can connect to 192.169.1.10 to access Sftp files. 

 

Then I quit zvik_camera_linux_app, program my new bitstream, build my new zvik_camera_linux_app, then try to launch Remote System Explorer debugger. Am I right? 

 

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Explorer
Explorer
18,525 Views
Registered: ‎11-17-2015

回复: How do I debug on the zvik_camera_linux_app in xapp794?

Jump to solution

Thanks for the reply. 

After a few trials now I am able to get through to the "rec" command now. Now remote debug seems working alright. 

 

3 Replies
Explorer
Explorer
9,687 Views
Registered: ‎11-17-2015

回复: How do I debug on the zvik_camera_linux_app in xapp794?

Jump to solution

After doing exactly what xapp794.pdf says, I am able to reach main.c but it always fails when I step to the "fd = open("/dev/mem", O_RDWR);". The fd returns -1. 

 

What might have gone wrong? I am using the bit stream and zvik_camera_linux_app source code from the xapp794.zip. 

 

 

int init_base_addresses( fmc_imageon_demo_t *pDemo, int bVerbose )
{
#if defined(LINUX_CODE)
  int fd;
  Xuint32 map_CoreAddress;
  extern XVtc_Config XVtc_ConfigTable[];

  fd = open("/dev/mem", O_RDWR);

  //
  // Specify Base Addresses for FMC-IMAGEON demo
  //
  if ( bVerbose ) OS_PRINTF( "Specifying Base Addresses for FMC-IMAGEON demo ...\n\r" );

  // IIC - FMC IMAGEON
  map_CoreAddress = (Xuint32)mmap(NULL, VIDEO_MMAP_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, fd,
		  (off_t)XPAR_FMC_IMAGEON_IIC_BASEADDR );
  if (map_CoreAddress == (Xuint32)MAP_FAILED)
  {
	 OS_PRINTF("MMap failed to map IIC FMC-IMAGEON peripheral\n");
	 return 0;
  }

 

0 Kudos
Xilinx Employee
Xilinx Employee
9,594 Views
Registered: ‎08-02-2011

回复: How do I debug on the zvik_camera_linux_app in xapp794?

Jump to solution
Hmmm, are you able to run with the pre-canned SD card image? Does the same type of error occur then?
www.xilinx.com
Highlighted
Explorer
Explorer
18,526 Views
Registered: ‎11-17-2015

回复: How do I debug on the zvik_camera_linux_app in xapp794?

Jump to solution

Thanks for the reply. 

After a few trials now I am able to get through to the "rec" command now. Now remote debug seems working alright.