Dear arm experts,
I try to debug my baremetel code on cortex_a55 boards(RK3568 SoC) with DS2021. When using DStream ST to connect the board, I encountered an error message: 'Failed to power up ARMCS-DP'.
How can I solve this problem? Do I need to update the version DS to obtain support for the Cortex-a55 boards?Looking forward to your reply.
Hello,
I see that the 'Target' LED is on on the DSTREAM-ST, and so a debug signal is detected.
Have you created a configuration for the target, or are you using an out-of-the-box configuration?https://developer.arm.com/documentation/101470/2021-1/Platform-Configuration/Platform-Configuration-and-the-Platform-Configuration-Editor--PCE-/Platform-Configuration-in-Development-Studio
You would need to create a configuration for this device.
Though not related to this issue, FYI you are using an older version of Arm DS. You can download the latest here:https://developer.arm.com/downloads/-/arm-development-studio-downloads
Thanks, Ronan!I referred to this video tutorial(developer.arm.com/.../Create a New SWD Configuration in Arm Development Studio) and connected my board using DSTREAM-ST. However, the following problems were encountered during the final Autodetecte platform. If I have not created a configuration for the target according to the steps of the video tutorial. That means I should not have succeeded in creating the configuration for the target.Thanks for your suggestion, I will follow your tutorial to create a configuration for this device.
HiMy name is Stephen and I work at Arm.It looks like the ARMCS-DP is powered-down. Check whether some power-control subsystem needs to be activated first.You currently have SWD selected. Are you sure the board supports SWD? Maybe try JTAG instead, with a 20kHz clock.The version of Arm DS (2021.2) that you are using is quite old. I suggest you update to the latest 2023.0 (though it won't fix the above problem).Hope this helpsStephen
Thanks Stephen,
Thank you very much for your reply. I have checked the relevant reference manuals and found that the SoC manual supports System debug, as shown in the figure below. This SoC supports the SW-DP interface.
I have also checked the circuit diagram of my development board. The ARM_JTAG port of this development board is connected through the pins of the SD card, such as D2 and D3 in the figure below. I connected them to the teammate interface of DSTREAM. I am currently checking to see if it’s the power-control subsystem's issue that you mentioned. However, I am not very familiar with the ARM System debug module, and I don’t know whether the above two supports are perfect enough to support the debug system. Does some other subsystems of ARM on the board need to cooperate to debug normally? The reason why I do not use JTAG is that the JTAG port of this board I use is multiplexed into other function, so I tend to use SWD for debugging.
Hi againThanks for checking your SoC manual. Yes, it looks like the SoC supports both SWD and JTAG debug connections.I still believe the most likely cause of the problem is that the ARMCS-DP is powered-down. It is quite common for this to be controlled by a power-control subsystem, which needs to be activated first.Take a look at the RK3568 TRM, Chapter 7 Power Management Unit (PMU)Stephen