You are not using a bootstrapping/reset pin for any peripheral by any chance?
Best would be anyway to make a new thread about your problem (this one here is marked as solved by the author) and maybe peek in how to ask a good question (providing your yaml etc.)