How to set up debugging for Neucleo-64 board in STM32CubeIDE?
I need some assistance in setting up a valid debugging environment in STM32CubeIDE using a Neucleo-64 STM32F103RB board.
I have wide experience in C, C++, and C#. I have also experience in the Arduino IDE, having made several projects there. After my initial setup of a valid toolchain, I planning to develop on STM32 parts commonly available on the Blue Pill development board.
I purchased a Neucleo-64 STM32F103RB because it appeared to be the closest STM32 part in the Neucleo-XX line to the Blue Pill development board.
I also purchased the book Beginning STM32 and the book Mastering-STM32.pdf as reference guides to setting up an appropriate toolchain for STM32 development. My primary requirement in the toolchain is to have inline debuging capability.
Each of the toolchain reference guides I purchased provided me some insight into the setup of a toolchain. There exist several toolchains that I supposed could be used, but each toolchain has its own complexities in setup. I went to the blog of the of the author for the reference Mastering-STM32.pdf reference where he essentially indicated that his reference for a Windows setup is more complicated than that which would be needed to setup the STM32CubeIDE and that one probably should adopt that free toolchain in place of the toolchain he recommends in his reference and skip the more complex setup information therein because a single installation of the STM32CubeIDE should suffice for his reference without a lot of setup nuances. This is the path I have taken.
Right now, I have succeeded in rewriting the blinky program for my STM32 Nucleo-64 in a way that I know that my code changes have taken because I can run the new code and it works as it should. What I cannot do is to debug it. I get an error regarding the I would have thought that the debugging in the STM32CubeIDE would be very tightly integrated and require minimum setup for the Neucleo-64 STM32F103RB board with its integrated debugging capability. But when I try to debug I get the error "Error launching GDB Server. Session terminated".
I need to find some instructions on how to set up the debugging so that this error does not occur. Hopefully there is a document somewhere that indicates the debugging setup for a novice, or there is a sample blinky program that would include all of the setup needed for the Neucleo-64 STM32F103RB board.
There are a few other issues, such as I do not seem to see how to get the generated bin file from a project loaded directly from the development environment, but rather must drag it from the project folder to a separate drive-like icon on File Manager that appears as a result of installing the drivers for the on-board ST-Link hardware on the Neucleo-64 board.
I'm sure that there are just a few debug setup issues that have fallen through the cracks, but I do not seem able to find the information I need to pin these issues down.
Any help gladly accepted.