cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
henty
Visitor
Visitor
2,327 Views
Registered: ‎10-30-2016

I can't read data in petalinux.

Jump to solution

Hello.

I have a problem with petalinux.

There is my problem.

 

I created a project to do AES.

Briefly, if I put 32 bit data in registers 0 to 7, Zynq calculates and stores the result in register 8 to 11.

 

I used vivado 2016.3 and verified it with Xilinx SDK.

They worked fine.

Then I create Petalinux project and got it working.

 

I refer to two websites and made my code. (https://fpgaw0rld.wordpress.com/tag/petalinux/, https://github.com/nikkatsa7/petalinux_gray_polling/blob/master/grayled.c)

 

I just put 32 bit data in register address(0x43C00000 ~ ) and read it.

But I can't read any data!!!

My code and reseults are in attachments.

 

What's wrong?

For reference, I did not touch the device tree.

 

result.PNG
result.PNG
0 Kudos
1 Solution

Accepted Solutions
debrajr
Moderator
Moderator
3,749 Views
Registered: ‎04-17-2011
It is difficult to tell from that. What you can try is to use SDK & tcf-agent to debug the application you have written and see what is causing the issue. You can refer to page-63 of the UG1144 which has steps on how to do that: https://www.xilinx.com/support/documentation/sw_manuals/xilinx2016_3/ug1144-petalinux-tools-reference-guide.pdf
Regards,
Debraj
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
henty
Visitor
Visitor
2,280 Views
Registered: ‎10-30-2016
P.S. Petalinux version is 2016.3.
0 Kudos
debrajr
Moderator
Moderator
3,750 Views
Registered: ‎04-17-2011
It is difficult to tell from that. What you can try is to use SDK & tcf-agent to debug the application you have written and see what is causing the issue. You can refer to page-63 of the UG1144 which has steps on how to do that: https://www.xilinx.com/support/documentation/sw_manuals/xilinx2016_3/ug1144-petalinux-tools-reference-guide.pdf
Regards,
Debraj
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------

View solution in original post

0 Kudos