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. Select Target -> Download emPower_ESPRO.Įmbedded Studio programs your board and you see the demo on the display.įor more information about the examples, refer to the README files included in your created project.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.Connect the emPower board to your computer or a USB power supply.Use the included 19-pin Cortex-M Adapter.Connect the J-Link to the emPower board.It demonstrates emWin along with some features of embOS, emNet, and emFile. The project already includes a set of example applications for each component. It includes the configuration for your board (the emPower) and all applicable software modules, which are embOS, emWin, emFile, emNet, emUSB-Device, emUSB-Host, emModbus, and emCompress. Your first Embedded Studio PRO project is ready to use. Select a location for the project, for example "C:/Users/Anybody/Documents/SEGGER Embedded Studio for ARM Projects/emPower_ESPRO".Enter a name for the project, for example "emPower_ESPRO".From the list of templates select "Embedded Studio PRO project for the SEGGER emPower (NXP Kinetis K66) board".If prompted "Where do you want to create the new project?" select "Create the project in a new solution".To explore the software libraries and its capabilities, first create a fully configured project with all components.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |