Forum Discussion

CAlex's avatar
CAlex
Icon for Contributor rankContributor
2 years ago

How to start and run a baremetal aplication without the debug

Hi,

I've managed to debug my code and now I want to test it on FPGA side.

The issue is my board (cyclone V soc dev kit) has only one uart to Jtag yet I need to monitor the FPGA and HPS at the same time.

So I need to run the HPS program first and then use Jtag to debug the Fpga program.

I prefer to use the SD card as ROM and let the board start from there.

The problems are:

1. I now have the preloader in the A2 and nothing more, where should I put the baremetal program?

2. After putting it to the right place how can I start my program?

3. I've learnd that I have to generate the elf file other than axf file, then use the mkimg tool to translate it to bin, do you have any guide to do that?

That's all.

Thnak you for your willing to help

Reguards.

18 Replies