UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor sjalloq
Visitor
1,911 Views
Registered: ‎10-19-2017

Can't read/write to AXI Timer

Hi there,

 

Configuration is: Vivado 2017.2, AXI Timer (2.0)

 

I've got a simple Microblaze system set up with the Interrupt controller, some GPIO and the AXI Timer/Counter module.  I've used all the default settings, as far as I know, and Vivado has mapped the Timer/Counter to address 0x41C0_0000 as it tells me in the Address Editor pane.

 

What I can see is that I'm unable to read/write the control registers successfully.  I've just tried using XSCT and while can modify the GPIO tristate control reg, for example, trying to update the TCSR0 at 0x41C0_0000 doesn't work.

 

How do I go about debugging this further?

 

Thanks, Shareef.

0 Kudos
9 Replies
Moderator
Moderator
1,847 Views
Registered: ‎10-06-2016

Re: Can't read/write to AXI Timer

Hi @sjalloq

 

Take a look to your HDF file within SDK and ensure that the exported design actually is the same as in Vivado. You are using 2017.2 release also which has a known issue re-exporting HDF files, so be sure that you are not facing it!

 

AR69489

 

Regards

Ibai


Ibai
Don’t forget to reply, kudo, and accept as solution.
0 Kudos
Xilinx Employee
Xilinx Employee
1,844 Views
Registered: ‎02-26-2014

Re: Can't read/write to AXI Timer

Hi,

 

As the register access itself is not up, check the clocks and resets.

 

Regards,

Ravi

0 Kudos
Visitor sjalloq
Visitor
1,839 Views
Registered: ‎10-19-2017

Re: Can't read/write to AXI Timer

@ibaie, thanks for that.  I took a look at the HDF and it seems to be correct.  Whenever I've updated it so far, I get a popup within the SDK stating that it is out of date and it then rebuilds things.  Do you still think that I should apply the patches in that AR?

0 Kudos
Visitor sjalloq
Visitor
1,837 Views
Registered: ‎10-19-2017

Re: Can't read/write to AXI Timer

@kravi, what do you mean by check the clocks and reset?  Check that they're hooked up in the BD or something else?  I've looked at the RTL top level and the clock/reset use the same nets as the working GPIO block.

0 Kudos
Moderator
Moderator
1,835 Views
Registered: ‎10-06-2016

Re: Can't read/write to AXI Timer

Hi @sjalloq

 

The popup message is expected, just is warning you that an update of the HDF has been received. If it's not a big issue you can just delete the workspace and export the HDF file again to ensure you are not facing the HDF issue :)

 

Then test accessing to the IP through XSDB and check if you can read/write the AXI timer.

 

BTW: What does mean that read/write does not work? is the system hanging? just reading alwasy same values...

 

Regards

Ibai


Ibai
Don’t forget to reply, kudo, and accept as solution.
0 Kudos
Visitor sjalloq
Visitor
1,832 Views
Registered: ‎10-19-2017

Re: Can't read/write to AXI Timer

@ibaie, sure, will try that now.

 

The component has a register file and I'm failing to write/read any registers.  Writing any non-zero value to the control register results in a read back of zero.  I started looking at this after the timer interrupt wasn't firing in my example code.

0 Kudos
Visitor sjalloq
Visitor
1,816 Views
Registered: ‎10-19-2017

Re: Can't read/write to AXI Timer

@ibaie, sorry, I've managed to screw up my SDK setup somehow.  I can't get anything to download and stop at main() entry any more.  Will have to retrace my steps.

0 Kudos
Visitor sjalloq
Visitor
1,807 Views
Registered: ‎10-19-2017

Re: Can't read/write to AXI Timer

@ibaie, yay!  It works.

 

So I manged to get myself in a twist by deleting the design resource which is what I thought you were requesting.  This corrupted the application project I was using so I had to recreate a new one and copy my sources.

 

The result is that I can now write and read the Timer registers.  I'll try and debug the interrupts further now.

 

As a side note, how are you supposed to delete the HDF without corrupting your project/workspace?

0 Kudos
Moderator
Moderator
1,802 Views
Registered: ‎10-06-2016

Re: Can't read/write to AXI Timer

Hi @sjalloq


Glad to hear that it worked at the end :)

 

You don't have to delete the HDF by itself as that is going to corrupt the workspace as you noticed. The AR#69489 will be updated soon with a manual workaround so you can refer to that.

 

Basically you can open the hw design from XSCT to force updating the content of your hardware project.

 

Regards

Ibai


Ibai
Don’t forget to reply, kudo, and accept as solution.
0 Kudos