Pixhawk boot stuck

Hello dear forum,
Yesterday, when I tried to connect via USB cable to my pixhawk cube black, the right indicataion LED blinked orange for 5 seconds and then turned off. The left one remaind solid orange, and the buzzer never made any sound.
I tried to connect via MP several times, I could see the pixhawk in the COM options, but when I tried to connect to it, the MP crushed.
When I pulled out the micro SD card, and then put it back inside the pixhawk, the pixhawk suddenly started to work properly again. It kept working just fine since then.

I’m trying to figure out what caused this problem in the first place, since I can’t manage to restore it.

Anyone have any ideas?

Thank you very much in advance!

You don’t need to do that. Insert a reformatted blank card and Ardupilot will write the required content. Unless you have logs and scripts on there you need.

Hi, thanks for your time

I wasn’t totally clear. The problem is fixed, I’m just trying to find out what caused it, so it won’t happen again.