cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
175 Views
Registered: ‎12-03-2019

Unable to get serial prints after using PMU api of xilpm library

Hi Folks,

I am trying to use xilpm api XPm_SystemShutdown (u32 type, u32 sybtype) in R5 application project.

The code builds successfully. However, I am unable to see output on serial terminal.

Steps Followed :

1. Created R5 application project (Hello World) in XSDK. After building, I am able to see prints on serial terminal.

2. Now, Added Xilpm in referenced bsp of R5 application project. Using xilpm api to reset the system.

However, I m not able to get serial prints which are written before using xilpm api.

Code Snippet :

 

int main() {

init_platform();

print("Hello World \n\r");

XPm_SystemShutdown(PMF_SHUTDOWN_TYPE_RESET, PMF_SHUTDOWN_SUBTYPE_SYSTEM);

cleanup_platform(),

return 0;

}

 

Referring below document to see usage of xilpm api

https://www.xilinx.com/support/documentation/user_guides/ug1199-zynq-power-management.pdf

The first argument (i.e. u 32 type) specified in this doc has two option : 1. PM_SHUTDOWN 2. PM_RESTART

Both these parameter is not found in pm api header files. 

Please guide me on:

1. Usage of xilpm api so that expected results can be achieved.

2. The correct parameter to pass to first argument (i.e. u 32 type) of api.

3. I tried other api XPm_ForcePowerDown(NODE_RPU_0, REQUEST_ACK_NO). Here also the prints were not coming on serial.

Any suggestion would be appriciated.

Thanks & Regards,

Anjalee

 

 

Tags (2)
0 Kudos
1 Reply
Highlighted
Moderator
Moderator
92 Views
Registered: ‎04-09-2019

Hi,

Can you please confirm that i the code is getting executed and in debug mode you are able to keep break point after helloworld print

?

Regards,

Venu

0 Kudos