Pixhawk not connecting/malfunctioning and main LED off

Hello everyone

So I was uploading a custom SIMULINK built-firmware to Pixhawk,it timed out and suddenly the main LED turned off (I have done this numerous times, it often times out, that doesn’t cause any issues)
Now when I try to connect it to my laptop, it says that the hardware device I have connected has malfunctioned.
All other lights are blinking fine.
Does anyone have any clue what the problem might be or how to fix it?
I can’t re-upload the default firmware because the Pixhawk won’t connect/show up in Mission Planner or in QGroundControl.