![]() After clicking OK, a debugging configuration file will be automatically generated. Then continue, under the settings of Projects->Properities, select Run/Debug Settings, select New->Ac6 STM32 DebuggingĪ dialog box for defining a new development board will pop up, select your debugging tool and interface, and the name of the development board. With the above settings, it should be able to compile and pass.Īt this point, in the project management pane, right-click on the Applications folder and select Index->Freshen All Files to eliminate the error prompt. Then remove the space in the Artifact Name under Build Artifact. That is, replace backslashes with forward slashes. Under Tool Settings->MCU GCC Complier->Symboles, set Select the current project, select Projects->Properities, select C/C++ Build->Settings in the list on the left, it may take some time to open this setting interface, please be patient. Select File->Import->Existing Projects into Workspace, select the path where your code is located, and be careful not to check Copy Projects into Workspace. Next, we open Eclipse with System Workbench installed. Please refer to other materials for the specific usage of STM32CubeMX. Copy the generated code to the Eclipse workspace. Then use STM32CubeMX to generate the code. In Project Settings, select Toolchain/IDE as SW4STM32. Development settings STM32CubeMXĬreate a new project, select your own chip type, and configure the corresponding pins, clocks and peripherals. You can select the download path of the support library in Updater Settings. Then select Help->Install New Libraries, install the required support library and other content, and you can use it for development. ![]() You need to install it, and then change the startup parameters of Eclipse (if you haven’t modified the system’s default Java operating environment) If it is), that is, add in the eclipse.ini file in the eclipse installation directory: ![]() I use Ubuntu 12.04, and the system comes with OpenJDK 6. It is worth noting that Eclipse Luna needs the operating environment of OpenJDK 7. The installation of System Workbench for STM32 is the same as normal Eclipse plug-in installation, so I won't talk about it. It should be supported by most STM32 chip development boards. The price is also relatively cheap (pirated copies are very cheap, and genuine ones are not expensive). This is a debugger officially supported by System Workbench. In addition, although STM32CubeMX has an Eclipse plug-in, that plug-in can only run under Windows However, because it is used in the Windows environment, the generated project needs to be modified before it can be used normally under Linux. The software currently only has a Windows version, but because it is actually compiled in Java, it can run normally under Linux. This software can easily generate high-quality hardware configuration codes, so that the development of STM32 can focus on the realization of functions. This is the software used to initialize STM32 peripheral drivers officially developed by ST. Other Eclipse versions have not been tested. The plug-in is compatible with Eclipse Luna and has some problems with Eclipse Mars. It was chosen because after the plug-in was installed, the STM32 development environment was configured, which is very convenient to use, and STM32CubeMX can directly generate projects suitable for it. System Workbench for STM32 (Eclipse plug-in) Used to install the System Workbench for STM32 plug-in, it is recommended to download the Eclipse IDE for C/C++ Developers version. ![]() Because I need to do some STM32 development recently, and most of my other development is on Linux, it often feels inconvenient to switch between Windows and Linux, so I studied the tools for developing STM32 under Linux, and by the way, do it here. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |