infinity loop in UPOWER_CheckReqWithArgs()

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

infinity loop in UPOWER_CheckReqWithArgs()

1,104 Views
Sandroom
Contributor III

Good day to all!
I am using IMX8ULPIEC processor and I encountered problem when using rpmsg_lite_pingpong_rtos_linux_remote example on m33 kernel.

The example compiles and runs, but when I upload it to the flash memory of the controller (emmc) and try to debug in VScode, the program gets into an infinite loop during the initialization of the clocks and does not exit it (specifically in BOARD_InitBootClocks() -> BOARD_BootClockRUN() -> UPOWER_Init(NULL) -> UPOWER_CheckReqWithArgs(UPWR_SG_EXCEPT, &sgf, &err, &ret, 0) -> while (!callbackStatus));
if another example from the SDK is uploaded to the flash memory of the microcontroller (hello_world for example), when debugging both the hello_world example and rpmsg_lite_pingpong_rtos_linux_remote, there is no freezing (in while (!callbackStatus) inside BOARD_InitBootClocks). That is, when the RTOS PingPong example is loaded into Flash under debug, no other examples can execute BOARD_InitBootClocks().

Question: what could be the reason for this behavior and what can be done to prevent it?

I load projects with the "debug" build configuration into Flash, and I try to debug in VScode with the same one

Labels (2)
Tags (3)
0 Kudos
Reply
5 Replies

1,064 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

Can you load it successfully when you use fatload and bootaux in uboot


Best Regards,
Zhiming

0 Kudos
Reply

1,051 Views
Sandroom
Contributor III
Thanks for the answer.
fatload allows loading code for m33 from linux? The flashed example starts when the board is turned on.
I write examples to flash via UUU and they start and work, but the problem is that when I try to debug them in VS code after that they freeze (under the conditions as I wrote above)
0 Kudos
Reply

1,028 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

There is a limitation when use VSCode on i.MX8ULP. Please refer the page 10 in this AN.

https://www.nxp.com/docs/en/application-note/AN14120.pdf

Zhiming_Liu_0-1735611062225.png
Best Regards,
Zhiming

0 Kudos
Reply

999 Views
Sandroom
Contributor III
I create a flash.bin image and upload it to the controller via uuu. My code in this case works without problems when the board starts. But if I try to start debugging as you said via Attach of the FreeRTOS example (rpmsg_lite_pingpong_rtos_linux_remote) the execution encounters an infinite while loop in BOARD_InitBootClocks() (as I described above), the same behavior occurs with some other examples using FreeRTOS (when the freertos example is loaded into flash.bin and I try to debug Vscode) but when there is a non-freertos example in flash.bin the infinite loop does not occur when debugging both the freertos and non-freertos examples
0 Kudos
Reply

969 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hello,

Can you share the boot type on board and imx-mkimage steps referring the Getting Started with MCUXpresso SDK for EVK-MIMX8ULP and EVK9-MIMX8ULP in SDK_2_xxxx_EVK-MIMX8ULP\docs?



Best Regards,
Zhiming

0 Kudos
Reply