
A121 Integration using STM32CubeIDE
3
Configuring Project for Acconeer Software
3.1
Adding Acconeer Software
There are four different folders in the SDK zip:
• doc
• examples
• integration
• rss
In the “doc”-folder you can find reference documentation of the Acconeer software. The “examples”-folder contains
example programs and their header-files. The “rss”-folder contains two subfolders called “include” and “lib”. The “lib”-
folder contains the Radar System Software (RSS) and the “include”-folder contains the header-files needed to use RSS.
The “integration”-folder contains files which connect RSS with the drivers generated by STM32CubeIDE.
Start off by unpacking the zip-file into your project. Refresh the project by right clicking the project in the Project Explorer
and click “Refresh”. Make sure you can see the folder in your project before continuing.
3.1.1
Source-files
Now the integration-file which you want to use needs to be selected from the “cortex_m4_gcc/integration”-folder,
Copy/move the “acc_hal_integration_stm32cube_xe121_multi_sensor.c”-file you have selected into “Core/Src”-folder. If
you want any examples, copy them from “cortex_m4_gcc/examples” to “Core/Src”-folder.
Also move the "acc_integration_stm32.c" and the "acc_integration_log.c" files from the “cortex_m4_gcc/integration”-
folder to the “Core/Src”-folder.
For this guide we select “example_service.c” and move it to the “Core/Src”-folder.
3.1.2
Header-files
1. Select your project in the “Project Explorer”
2. Go into “Project
→
Properties
→
C/C++ General
→
Paths and Symbols
→
Includes”
3. Press “Add...” and then “Workspace...”
4. Select the “cortex_m4_gcc/rss/include”-folder in your project
Repeat this procedure for the “cortex_m4_gcc/integration”-folder and the “cortex_m4_gcc/examples”-folder.
3.1.3
Libraries
In order to set the path for the libraries, do the following:
1. Select your project in the “Project Explorer”
2. Go into “Project
→
Properties
→
C/C++ General
→
Paths and Symbols
→
Library Paths”
3. Press “Add...” and then “Workspace...”
4. Select the “cortex_m4_gcc/rss/lib”-folder in your project
Once the path is set, you can add the specific libraries by the following:
1. Go into “Project
→
Properties
→
C/C++ General
→
Paths and Symbols
→
Libraries”
2. Click “Add...”
3. Enter "acconeer_a121"
4. Click "OK"
3.2
Project Settings
Set the project to gnu99-compiler by going into “Project
→
Properties
→
C/C++ Build
→
Settings
→
Tool Settings
→
MCU GCC Compiler
→
General”.
© 2022 by Acconeer AB - All rights reserved
Page 14 of 23