• 0
nicanor5

Using both hard processors in Zybo in parallel from Vivado

Question

Hello,

I'm developing a bare metal application in Zybo for a subject this semester and I want to run two tasks in parallel taking advantage of the dual processor in the Zynq.

I want to know how can I use the dual core capabilities of the Cortex A9 processor in the Zybo in a bare metal application, configuring it from Vivado.

I found this tutorial in Xilinx documentation but it uses the EDK instead of Vivado.

If you can lead me to more resources where I can learn how to do this I'll be really thankful.

Thank you very much.

Edited by JColvin
tags

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 1

Hello,

I think I've found a couple of solutions for what I need, the first one I have tried, the second one will try if the first one fails:

1. Create the functions you want to run in each CPU, they should have an infinite loop, and use function pointers to tell CPU1 where to start running as stated in the tutorial I already mentioned.

2.  Use the linker script to tell SDK where to put your programs, you know, the lscript.ld that SDK creates automatically. As I said, I haven't tried this one yet, I will if the first method fails for me.

I will also have to check more on this documentation, which is from the tutorial I pointed out in my first post, as they have updated to work with the most recent versions of Vivado.

Share this post


Link to post
Share on other sites
  • 0

Thank you very much for your answer.

The tutorial you provided only uses one of the processors.

I need to run different processes in each processor and they must share sync signals and some buffers.

Thank you very much.

Share this post


Link to post
Share on other sites
  • 0

Hi nicanor5,

I'm not sure that we have any demos available that take advantage of this, but I asked some of our applications engineers about this; they'll get back to you here on the forum.

Thanks,
JColvin

Share this post


Link to post
Share on other sites
  • 0

Hello, nicanor5,

Have you checked out the Zynq Speedway workshops on zedboard.org?  

It looks like a great tutorial.  The difference between Zedboard and ZYBO is fairly minimal.

Hope this helps,

Marshall

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now