05-22-2014 08:53 PM
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
06-30-2014 01:44 AM
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
05-22-2014 09:20 PM
06-11-2014 10:04 PM
I have benefited greatly from your answer,Thank you very much.
but do you know why now?
06-11-2014 10:05 PM
but i don't know why?
06-25-2014 05:42 AM
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
06-27-2014 08:51 AM
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.
06-30-2014 01:44 AM
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
05-19-2015 04:11 PM
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?
06-23-2015 03:42 AM
07-01-2015 10:36 AM
found the solution; create a simple helloworld BOOT.BIN file and write it to the SD card;
now you can debug from JTAG;
09-03-2020 07:12 AM
09-24-2020 12:15 AM
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.