Difference between STM32CubeIDE and GDB
I'm a newbie to STM32 programming, but have 25+ years in desktop development.
I've created a PCB with a STM32F042F6 mcu (based on a working design). I added pins for a SWD port and I have an LED connected to PortB1.
I've used STM32CudeIDE to create a simple program to blink the LED every 500mSec.
I've connected using the black_magic probe and can get the LED to blink in debug mode
Startup code for the debug configuration is
set mem inaccessible-by-default off
target extended-remote /dev/ttyACM0
monitor tpwr enable
shell sleep 5
monitor swdp_scan
attach 1Anyway this bit works.
My question is, how do I get this to work in the release mode. If I power cycle the target board the program does not restart automatically.
I also connected via GDB (without the STM32 IDE) and while I can connect and load the elf file, after "run" the GDB console remains unresponsive to further commands.
