Please look P2040 Reference Manual, Section 4.6.1 "Power-on reset sequence"
In this section, there is a exact step by step sequence, where HRESET is asserted at step 4 and negated at step 14.
Between these two actions, there are a number of other steps performed - cfg_rcw_src sampling, RCW load, PLL lock.
Several of these steps may halt indefinitely waiting for another PORESET, is something fails - in case of ECC error when loading RCW from NAND flash, or in case if PBL can not complete loading RCW data without errors. Also, there is PLL locking step, so it may also fail if PLL configuration is incorrect.
The best way to check this is to switch to hard-coded RCW. If the device correctly releases HRESET on hard-coded RCW, but does not do that on your custom RCW, than there is a problem with RCW loading or RCW value.
Hard-coded RCW may be enabled by switching cfg_rcw_src, please look Table 4-11 for available hard-coded options.
Have a great day,
Alexander
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------