I checked your fpc.cfg and saw some lines at the end that show me that you tried to build the Embedded Target of fpcupdeluxe.
You are right. Somehow I completely forgotten I did that and even didn't think it mattered at the time. I was wrong and apologize for the inconvenience.
take the fpc.cfg file attached here, it works for your installation directory
First I used your file without changes (after rebuild all) and then for the first time IDE didn't complain during compilation but it didn't let me run the BluePill blinky code. It said
"Unable to run c:\fpcupdeluxe-embedded\mbf\SamplesBoa...\Blinky". Then I examined your
fpc.cfg file and saw that it has mixed
C:\Prg\Lazarus\stm32x64\ and
C:\fpcupdeluxe-embedded\ paths. Since this time I used
C:\fpcupdeluxe-embedded\ for fpcupdeluxe I adapted all paths to that. You can find that new config file attached. Then I tried both yours and mine config files, but I get either a mentioned error or Lazarus hangs immediately after F9 and I had to kill it.
Before every try I could connect and disconnect with ST32CubeProgrammer (btw. much later I tried to use it to download produced hex file to BluePill and run it. Led was not blinking).
Yesterday I had so many tries and failures that I had enough for the day and switched off the plug.
Today I wanted to try something fresh, and try to locate PlatformIO st-util, since I knew programming and debugging works well with PlatformIO, and it was the same GDB server we tried working with Lazarus. At first try I could finally debug and execute step by step. Hoooray! Unfortunately there is one issue, but I will cover that separately in the next post.
If after cleanup/rebuild and using my fpc.cfg it still does not work for you then please send me the complete buildlog vith -va option enabled, I can then compare with the installation I did on my computer.
If you still think this is needed then please say so in which exact configuration and I will do it.
Btw. Note for anyone trying to locate PlatformIO GDB server executable, on my pc it is located here:
c:\Users\avra\.platformio\packages\tool-stm32duino\texane-stlink\st-util.exeI have archived whole dir and attached. Yes, attachment holds executables, so if anyone is suspicious then don't download it and use one from PlatformIO.
EDIT: I have just checked and with PlatformIO st-util both my new
c:\fpcupdeluxe-embedded and old
c:\PRG\Lazarus\stm32x64 debugging partly work, showing the same issue explained in the next message.