Hello Jaroslav Dytrych,
CCS failed at ccs::reset_to_debug, probably there is problem with RCW or JTAG interface hardware design on your target board.
1. Please refer to the section "4.4.6.2 Hard-coded RCW options" in LS1021A Reference Manual to configure your target board to use one hard-coded RCW, then verify your above CCS commands.
2. Please check the hardware design, please download "AN4878, QorIQ LS1021A Design Checklist - Application Note" from QorIQ LS1021A Dual-Core Communications Processor wi|NXP , and refer to "Figure 31. JTAG interface connection" to check your JTAG interface design, especially nRESET pin.
Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------