...
Download System Workbench
Go to the OpenSTM32 community webpage and download the System Workbench for STM32. The IDE is free and available for all platforms that support Eclipse, but you will have to register and validate a user to get access to the download and accompanying instructions.
Note |
---|
Make sure to check your spam filter if you don't receive a validation email after registering. |
Prepare the NUCLEO-L053R8
...
Open Debug Terminal
Compile and Run
Open Workspace
Start up the System Workbench for STM32 and browse to examples/nucleo-l053r8/ when promted to select a workspace.
Import Project
- File > Import... > General > Existing Projects into Workspace and press Next >.
- Select root directory: Click Browse... and navigate to the SimplePublish example: examples/nucleo-l053r8/SimplePublish/
- Press OK
- Select SimplePublish that appears in the Projects list.
- Make sure to leave the option Copy projects into workspaceunchecked and press Finish.
Note |
---|
The System Workbench project expects to find the sm_clib and sm_qsl as they appear in the Directory Structure. If you chose the zip download or subversion checkout, the sm_clib/ directory from the separate unzipped folder/svn checkout need to be copied into the QSL repository to achieve the same structure. |
Build
Project > Build Project (or press the icon) to build the project.
Tip |
---|
By default Eclipse will index unused headers, causing some errors that don't affect compilation. You can remove these by disabling the option in project properties: |
...
Debug/Run
The first time you run the project, you have to select the correct debug configuration:
- Run > Debug (F11)
- Select Ac6 STM32 C/C++ Application and press OK.
- Eclipse should now prompt you to change to a Debug perspective, before starting a debug session.
After this you should be able to debug/run the project with Run > Debug (F11) and Run > Run (Ctrl+F11) (or press the icons: ) without any configuration.