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

standalone application command line flow

Unsolved
2 posts / 0 new
scott_wilson46's picture
scott_wilson46
Junior(0)
standalone application command line flow

Hi,
I wonder if you can explain to me what is going on when I try and run a program on the zedboard.

The scenario that works is (from board power up):

1. Launch the SDK from Vivado.
2. Program the FPGA.
3. Run a program (using the Xilinx C/C++ application (GDB)) that accesses a few memory mapped registers in the PL.
4. Now launch another program from the command line using xmd:
source proc/hw_platform_0/ps7_init.tcl
connect arm hw
ps7_init
fpga -f output/arm_subsystem_wrapper.bit
rst -processor
dow proc/test/Debug/test.elf
run

This all works fine.

The scenario that doesn’t work is (from board power up):
1. Use xmd to run a program from the command line using xmd:
source proc/hw_platform_0/ps7_init.tcl
connect arm hw
ps7_init
fpga -f output/arm_subsystem_wrapper.bit
rst -processor
dow proc/test/Debug/test.elf
run

This doesn’t work. It’s as if the SDK is running something else too other than just the application elf file that does some start-of day configuration stuff. I am running a baremetal application (using the helloworld example target). If I take out the FPGA register reads the second scenario works (essentially just doing print(“Hello World\n\r”);)

Any ideas? I think to have a viable Zynq flow we really need a way of building and launching from the command line without having to involve the SDK.

Regards,
Scott

scott_wilson46's picture
scott_wilson46
Junior(0)
Solved

In case anyone else runs into this, I posted the same query on the xilinx forums and got a solution:

http://forums.xilinx.com/t5/Zynq-All-Programmable-SoC/standalone-applica...