This post was helpful for me. I have already tried this.
Currently, for testing UART part, I have shited to Adder example. Currently focused on below example to achieve my work for user flexibility to send trace file through UART.
Send the inputs through UART from a file, addition is then performed on FPGA and send the sum back through UART.
Step 1: Designed 8 bit adder and created IP of this module (Mapped I/O of this module to the slave registers of Zynq ARM processor)
Step 2: Generated Block design connecting PS and PL through AXI protocol
Step 3: Created wrapper of new design and generated bitstream
Step 4: Launched SDK local to this project and created an empty application project
Step 5: Wrote the C code, given the inputs to adder through UART and mapped them to the base address of slave registers.
Till this step I have tried. I guess it is almost similar to the first post mentioned by you.
So , now I want to give this input from file rather than giving it manually. File handling functions in C are not working. I will attach C code of my project.