Please look P2040 Reference Manual, Section 4.6.1 "Power-on reset sequence".
In this sequence, it is said that the device starts driving HRESET at step 4 and stops driving HRESET at step 14.
So, if you see HRESET is driven asserted (low) and not released, than this meas the device does not come from reset, and something happens between steps 4 and 14. Please check everything mentioned in these steps and verify everything - RCW source, RCW itself, PBL, PLL configuration, PLL input frequency, PLL-related power supplies. Also please check it TRST is asserted at least once with PORESET.
For further debugging please open a support case to Online Technical Support and attach your schematic to that case.
To enter a case to online technical support please perform the following:
1. Open www.nxp.com
2. Click on "Account" or your name in upper right corner and select "My account", enter your NXP site login/password if necessary.
3. Select "View all Support Methods" in Support section.
4. Click "Go to Tickets" in "Support Requests" section
5. The system should redirect you to this page https://nxpcommunity.force.com/community/CommunityContextPage
6. At this page please create a new folder for support cases by clicking "Add a Folder". Typically - one folder per project.
7. When asked, enter project details - design stage, projected annual volume, end application type and application name.
8. When folder is created, please click "Add a new case" button to create support case.
Have a great day,
Alexander
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------