@ccrause: Thanks, that was the info I was looking for. I'll post what I did when it works.
@MiR: I have all three variants, but I'm using an STM32F401 and official (at least with the logo) ST-Link v2. Both the ST-Link and the discovery boards already seem to do all those things, so I'm not sure it would be an improvement.
@Dimitrios: Thanks, yes, that is exactly what is going wrong!
I made the following file:
define target hookpost-remote
file "D:/Projects/FROS/test.elf"
load
end
saved it as
D:\Projects\FROS\gdbinit.conf
(I first put it in the ST-Link dir, but that didn't seem to work, it has to be in the project dir.)
And I added the folowing line to Debugger_startup_options:
-ex "set remotetimeout 60" -iex "d:/projects/FROS" -ix d:/projects/FROS/gdbinit.conf
That gives the following error:
Initialization output:
&"\nwarning: "
&"bad breakpoint number at or near ':/projects/FROS'\n"
=cmd-param-changed,param="remotetimeout",value="60"
I would like to try your patch, if I can get it to work with fpcupdeluxe.
Btw, does this program the device? In your picture, the Debugger_Remote_downloadexe is still checked.
Edit: I found an open-source GDB server (st-util), but that takes over the port, so I cannot use a separate flash prog at the same time. There is an ST-Server which should allow multiple access, but it is incompatible with the GDB server. Also, starting the GDB server from a command-line doesn't finish, so I cannot start one automatically: I have to check if it still works and start it if it doesn't.