> According to the LS1021a ARM, PORESET should also assert TRST
In the QorIQ LS1021A Reference Manual, Rev. 0, 4.4.1 Power-on reset sequence it is written:
“The common on-chip processor (COP) requires the ability to independently assert PORESET_B and TRST_B to fully control the processor. If a JTAG/COP port is used, follow the JTAG/COP interface connection recommendations given in the chip's data sheet.”
Please refer to the QorIQ LS1021A Data Sheet, Rev. 1, Figure 90. JTAG interface connection.
> Why does "reset_to_debug" cause assertion of PORESET on the LS1021ATWR board?
The TWR-LS1021A has CPLD System Controller, which uses the JTAG_RST_B to generate PORESET_B.
> And, should our design also assert PORESET when we use CCS to execute "reset_to_debug"?
Yes.