• 0

File directory when using linux debug


Where should I put the file when I try to read the file as a argv? For example, if I want to read file XXX.cfg, where should I put the file? The same directory as the elf file?

Share this post

Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Are you talking about a Linux or baremetal Xilinx SDK application?

Typically how that works in Linux is that you are just passing the location of the file as a command line argument, so it doesn't really matter where it is as long as you provide the correct location. On Zynq systems, I would typically do this by putting both files on the FAT partition of the SD card, and running something like:

mount /dev/mmcblk0p1 /mnt
cd /mnt
./myelf.elf "./myconfig.cfg"


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now