Sorry, you need to enable JavaScript to visit this website.

Problem in creating dump file in VIVADO project

Unsolved
3 posts / 0 new
sekhar5505's picture
sekhar5505
Junior(0)
Problem in creating dump file in VIVADO project

I had a problem in creating FILE pointer like FILE *fp; and then i opend a file like
fp = fopen("c:/user/xilinx/project1/hello.txt","w");
and i didn't get any address in file pointer while debugging and i didn't get any dump file hello.txt in my project1 help me!!!!!!!!!

TroutChaser's picture
TroutChaser
Moderator(18)
Assuming that you are

Assuming that you are attempting to program a Zynq device on something like a Zedboard, you need to first understand the embedded system you are working with. Programming on the Zynq is not the same as writing a C program to run under Windows on your PC. The statement you have listed above assumes that there is a "C:" hard drive available to the system (C: is on your host PC, not on the ZedBoard), and that you have a file system implemented on the "C" drive, and that you have an operating system, like Windows, that  supports the 'fopen' operation.
 
On a ZedBoard there is only the RAM memory internal to the Zynq device, the DDR3 DRAM, the SD Card (if installed) and the QSPI Flash device, no 'C' hard drive. Then, to perform a file operation on one of these available memory resources, you would need to implement an Operating System (such as Linux, PetaLinux, FreeRTOS, etc.) or at least one of the file system libraries (xilmfs).
 
I suggest that you study to familiarize yourself with the Zynq system by using the resources referred to the answer to one of your previous posts: http://www.zedboard.org/content/helloworldelf-storage-location-zedboard
 
Then perhaps move on to the PetaLinux Speedway material available at the same page pointed to for the Zynq Software and Hardware Speedway material or some other resources for embedded systems.
 
Also, please do not continue to make duplicate posts of the same question on multiple forums.
 
-Gary

sekhar5505's picture
sekhar5505
Junior(0)
Thank you for your information

Thank you for your information. In my zedboard bootable system from SD card. How can i see the .elf from file system using teraterm window