I have read this document. I was looking for more detailed document as some of the steps that are described in this document are not working.
My problem is that I cannot establish serial connection with ultra96. In both windows and Linux (with pre-built image). I keep on getting black screen.
Also I cannot connect ti the board from SDK with TCF agent (I enabled TCF agent during in my petalinux built).
When you change the underlying hardware from the default included with the BSP, you will need to pull the new hardware description into your PetaLinux project using the "petalinux-config --get-hw-description=" command as outlined in UG1144:
Once you get the new hardware configuration pulled in, build everything by running "petalinux-build" command.
Finally, you can package everything up with your "petalinux-package" command.
As for getting your application working, my suggestion is to get it working as a new SDK Linux application project first, then pull the application code into a new PetaLinux app under your PetaLinux project.
For connecting to the TCF Agent, we have some lab materials that cover connecting to the profiler using SDK that you might find useful:
Did you run "petalinux-build" command after you enabled tcf-agent in your PetaLinux project? If you did not, then tcf-agent might not have gotten baked into the RootFS image properly.
My PL + PS application works om bare-metal Ultra96 and I can built Petalinux for this board as well. Now I want to move my application to petalinux environment.
How do I program FPGA and run C code in petalinux?
Can anyone share his approach (or a tutorial) for PL programming and Petalinux application development?
To program FPGA do I have to rebuilt BOOT.bin by using petalinux command below?
$ petalinux-package --boot --fsbl components/plnx_workspace/fsbl/fsbl/Release/fsbl.elf --fpga hardware/design_1_wrapper.bit --pmufw components/plnx_workspace/pmu-firmware/pmu-firmware/Release/pmu-firmware.elf --u-boot
where "design_1_wrapper.bit" is exported from my Vivado project?
Do I have to generate FSBL and pmu-firmware.elf myself as well?
Can I use SDK to program FPGA and run C applications on petalinux (ULTRA96 board SD card boot mode)?