Hmmm... your last post confuses me a little, seems I have mislead you in some way.
There is currently no need for you anymore to apply patches to be able to start embedded development.
The steps to success are:
Download
http://temp.michael-ring.org/embedded-deluxe-win10-x86_64.zipCreate a
fresh x86_64 instance of Lazarus+FPC with fpcupdeluxe, check that it starts fine.
After this unpack the zip-File you just downloaded into the root of your new instance. The directory structure in the zip file is the same as in your fpcupdeluxe instance, after unpacking you should be able to see:
ppcrossarm.exe
in the
fpc\bin\x86_64-win64
directory.
Now extend the fpc.cfg file located in fpc\bin\x86_64-win64 as described on the previous Page of this thread.
Download the new binaries for the gdbserver:
http://temp.michael-ring.org/stlink-1.5.1-win10-x86_64.zipput them somewhere and start the gdbserver by starting st_util.exe
Configure the gdbserver settings in Lazarus with port 4242 (See Screenshot on previous Page)
For the very first verification that all is well download my mbf-Snapshot
http://temp.michael-ring.org/mbf-snapshot.zipand extract it to some place .
Then load the Blinky Project in
mbf\SamplesBoardSpecific\Blinky-Bluepill in your Lazarus Instance, ignore the eror message about system not found...
This small example compiles and runs well on the BluePill, so it is a good starting point to verify your installation.
Compile it, Hit Run and single step through the code.