This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5716: cpuiidle test stops in Board_watchdogDisable()

Part Number: AM5716

Hi, 

This is related with the followings thread.

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1216888/am5716-am5716/4623626?tisearch=e2e-sitesearch&keymatch=%252525252525252520user%25252525252525253A540505#4623626

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1228150/am5716-how-to-merge-cpuidle-source-main_a15-c-with-ccs-project/4638723#4638723


I built the following source and got binary.
source C:\ti\sdk_am5716\processor_sdk_rtos_am57xx_08_01_00_09\pdk_am57xx_1_0_19\packages\ti\drv\pm\examples\cpuidle\main_a15.c
binary C:\ti\sdk_am5716\processor_sdk_rtos_am57xx_08_01_00_09\pdk_am57xx_1_0_19\packages\ti\binary\pm_cpuidle_testapp\bin\idkAM571x\pm_cpuidle_testapp_a15_0_release.xa15fg

Question 1

In original linker file, pcode and data is placed in DRAM. When I created binary using this linker and tried to loard binary on AM57x on CCS, it failed. Maybe DDR is not initialized.
So I changed the linker file to place code and data SRAM. I attached this linker file. Would you check if there are any issue?
lnk_a15.cmd

Question 2
I connected XDS110 to AM57 EVM.

<hardware>
This is the EVM I'm using.


<CCS>

I loaded binary to AM57 and ran A15 core. I captured my desktop and attached it below. 

As this video shows

1) When I loaded binary, program counter did not stop at the beginning of main(). After I clicked CPU stop and restart icon, CPU stopped at the beginnig of main(). Is this method OK? Is their any propriate way to load binary ?

2) After 1), CPU started from main() and entered function "Board_watchdogDisable()" , CPU cannot exit from this function and cannot got to the next. Would advise how to fix it to go to the next ?

Thank you.

Best Regards,

Kasai