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: 
Observer fbruder
Observer
1,011 Views
Registered: ‎09-11-2017

OpenAMP baremetal application debugging problem

hey everyone,

I have some problems with debugging a openamp setup (zynq720, core0: linux, core1: baremetal application).

Like in UG1186 described, I launch the "echo_test" example application from Linux.

echo image_echo_test > /sys/class/remoteproc/remoteproc0/firmware
echo start > /sys/class/remoteproc/remoteproc0/state
modprobe rpmsg_user_dev_driver

Then I start debugging the "echo_test" application from XSDK.
Next I issue these commands to initialize the "echo_test" application.

echo stop > /sys/class/remoteproc/remoteproc0/state
echo start > /sys/class/remoteproc/remoteproc0/state

Everything works as expected and dibbuging is no problem.
If I now change the application code, compile it and start debugging again, it seams that the old version of the application is still running and I get a lot of nonsence in the debugger.
Is the transfer from XSDK not working properly or do I always have to load the modified version of the app via Linux?

I also tried to shutdown core 1:

echo 0 >  /sys/devices/system/cpu/cpu1/online

and start debugging from XSDK but then I get some JTAG error.

We are using Xilinx tools 2017.4.

Thanksin advance!

0 Kudos
2 Replies
Moderator
Moderator
976 Views
Registered: ‎05-10-2017

Re: OpenAMP baremetal application debugging problem

Can you disable cpu idle as described in the AR below and then try this ?

https://www.xilinx.com/support/answers/69143.html

 

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Highlighted
Observer fbruder
Observer
954 Views
Registered: ‎09-11-2017

Re: OpenAMP baremetal application debugging problem

hey,

 

thanks for your quick reply!

I deconfigured "cpu idle" in the kernel but it stell has the same behavior.

 

If I shutdown CPU 1 from linux and try to debug I get following error messages:

xsdk_error_launching_programm_1.png

or

xsdk_error_launching_programm_2.png

 

And here is my run configuration from XSDK:

debug_configuration_target_setup.png

debug_configuration_application.png

 

Any further idea?

Thans and cheers!

0 Kudos