The bootloader is not loading for FMU on Pixhawk 4

I solved the problem. When I proceeded through the terminal as stated on this page, I was getting an error. The solution to the error is as follows.

Error: arm-none-eabi-gdb on stm32 warning: unrecognized item “timeout” in “qSupported” response

  • Ignoring packet error, continuing…
  • warning: unrecognized item “timeout” in “qSupported” response
  • Ignoring packet error, continuing…
  • Remote replied unexpectedly to ‘vMustReplyEmpty’: timeout
Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response
Ignoring packet error, continuing...
Remote replied unexpectedly to 'vMustReplyEmpty': timeout

Solution:

  1. Open two terminals
  2. Start ST-Link GDB Server st-util -p 3333
  3. Inside the arm-none-eabi-gdb command, instead of “tar ext /dev/serial/by-id/” connect to the server, you can do this like this target extended-remote :3333
  4. The remaining steps are the same. The only thing different on this page is the linking done in step 6.
    `