I have an STM32L476RG on a custom board that I have to leave connected to an external ST-Link/V2 so that I can reprogram it without accessing the hardware. I'm also forced to do this via a USB hub due to my limited number of available outputs.
Right now the MCU runs when the hub (and in turn the ST-Link) is powered via a connection to a computer. I'm searching for a way to make it run when the hub isn't powered, however.
I've found some information here regarding the NRST pin, however I only have one ST-Link at the moment and I'd like to avoid messing with it until I've exhausted other options. I should add that its in SWD mode and that I'm also using a 10-to-20 pos JTAG adapter.
Finally, my firmware is largely based on FreeRTOS. A software solution would be ideal if someone can suggest how to do that.