cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
neowt
Adventurer
Adventurer
16,419 Views
Registered: ‎08-08-2008

SDK debugs causes MMU section translation fault

Jump to solution

I would like to share my observations of the below:

 

Problem:

  In SDK and launching an application to "Debug As -> Launch on Hardware (GDB)", SDK reports, 

 

  "Unexpected error while launching program: Error while running ps7_init method.  Cannot read from target

   MMU section translation fault                                                                                                                          "

 

Observation:

  This problem occurs when I let Zynq boots to Linux.  If I breaks into U-boot, I don't get the error and I can launch my debug application.

 

Solution:

  Break into U-boot if you wish to launch your own application for debugging.

 

My setup:

  Microzed in SD card boot mode, cascaded JTAG.

 

Regards,

 

Neo

 

 

Tags (1)
1 Solution

Accepted Solutions
neowt
Adventurer
Adventurer
16,164 Views
Registered: ‎08-08-2008

  The error is probably due to ARM MMU up and running and protected mode operations when Linux boots.  

 

  I was making use of uboot to configure some low level peripherals so that my applications jump straight in to send data.  Sometimes I was slow at interrupting the boot process and the error occurred. Yeah, if you really do not need uboot, simply boot in jtag mode.

 

 As to the Bhaskarnallani's question, I guess you have to learn how to Linux device driver and apps.

 

Neo

  

View solution in original post

Tags (1)
0 Kudos
11 Replies
achutha
Xilinx Employee
Xilinx Employee
16,415 Views
Registered: ‎07-01-2010
Hi,

Thanks for your effort in sharing your observation and solution.

This may help many to overcome the issue.

Regards,
Achutha
---------------------------------------------------------------------------------------------
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.
----------------------------------------------------------------------------------------
0 Kudos
aceachao
Visitor
Visitor
16,312 Views
Registered: ‎06-09-2014

I have benefited greatly from your answer,Thank you very much.

but do you know why now?

0 Kudos
aceachao
Visitor
Visitor
16,311 Views
Registered: ‎06-09-2014

but i don't know why?

0 Kudos
bhaskarnallani
Visitor
Visitor
16,223 Views
Registered: ‎06-09-2014

Thanks man.

 

It helped to run my first simple IP on the Zynq706.

 

I would like to check how to run the same kind of application in linux and interact with my hardware IP.

 

Thanks

Bhaskar

0 Kudos
johnnymopo
Visitor
Visitor
16,207 Views
Registered: ‎03-17-2012

I had the same problem.  I switched to not booting from SD and it seems to take care of it.  I'm a Zynq/ARM noob, but I just noticed this, and I'm sure its for a very good reason that I do not know.

0 Kudos
neowt
Adventurer
Adventurer
16,165 Views
Registered: ‎08-08-2008

  The error is probably due to ARM MMU up and running and protected mode operations when Linux boots.  

 

  I was making use of uboot to configure some low level peripherals so that my applications jump straight in to send data.  Sometimes I was slow at interrupting the boot process and the error occurred. Yeah, if you really do not need uboot, simply boot in jtag mode.

 

 As to the Bhaskarnallani's question, I guess you have to learn how to Linux device driver and apps.

 

Neo

  

View solution in original post

Tags (1)
0 Kudos
sanjivgarg
Adventurer
Adventurer
13,154 Views
Registered: ‎12-10-2014

I have the same question: currently we are designing our own zynq board for production; the hardware engineer wants to hardwire the zynq to boot from SD mode, but I am worried that then we wouldn't be able to debug from SDK;

 

has anyone else run into this? should we add a jumper to the board to switch from SD mode to JTAG mode?

0 Kudos
pogany
Visitor
Visitor
12,633 Views
Registered: ‎12-08-2014
I have the same bug, this post helped me a lot. many thanks
regards
Pogany
0 Kudos
sanjivgarg
Adventurer
Adventurer
12,531 Views
Registered: ‎12-10-2014

found the solution; create a simple helloworld BOOT.BIN file and write it to the SD card;

now you can debug from JTAG;

0 Kudos
AlexD
Visitor
Visitor
2,110 Views
Registered: ‎05-17-2020
A few years later.... I had a similar problem.
Check the installation of jumper JTAG BOOT MODE

AlexD
0 Kudos
ali-dn
Observer
Observer
1,961 Views
Registered: ‎07-24-2019

I had the same bug. I think,  problem is ddr access .

In [app_project_path]\src\lscript.ld all the section to memory mapping was set to ps7_ddr_0.

so I changed all of this part to ps7_ram_0 and so it worked. 

0 Kudos