Hi Andrei Szeghy,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
According to your description, it seems MCU won't boot up successfully on rare occasion because of P2[10] is 'triggered', is it right?
However, I don't agree with the reason you pointed out, I think the MCU enter into the ISP mode, to validate this assumption, please adding a pull-up resistor (10 KΩ) on the P2[10] pin to terminate this 'issue'。

Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------