*This content has been reposted with the approval of the original author.
When using Eclipse as the development tool for Geehy MCU, we may find that using openocd to connect Geehylink does not work properly. This article will teach you how to solve this problem and provide source code to help you use openocd to connect Geehylink on Linux and MacOS.
I am already based on openocd( https://github.com/openocd-org/openocd )Source code, added Geehy MCU. If you use openocd to debug Geehy MCU, you can compile corresponding executable files based on your computer system
https://github.com/David-lau/openocd-geehy.git
The compilation method is also very simple. You can refer to the official documentation README / README.Windows / README.macOS.
For example, if you compile in a Linux environment, the compilation method is as follows:
./bootstrap (when building from the git repository)
./configure [options]
make
sudo make install
which openocd (Get the openocd path)
“which openocd” is to help us find the path to the installed openocd, which is convenient to fill in various IDEs, such as Eclipse:
At this point, you can easily use Openocd to debug Geehy MCUs.