Can't run code without USB connection
Hello, sorry for asking this but I'm new to operating STM32 microcontrollers and the IDE it came with. I wrote a simple code to read the pin state and write to an LED once detected. All runs well on debugging. The problem for me is that when I unplug the USB connection (the board is powered through a power supply) the code suddenly stops and no LEDs light up after the button is pressed.
Is there a step I'm missing like compiling to memory? I've spent some time looking for an answer but sadly I got no luck in solving this.
If possible, could someone lead me towards finding a solution for this? Thank you :)
