summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Gekov <george.gekov@arm.com>2021-04-09 14:50:54 +0100
committerGeorge Gekov <george.gekov@arm.com>2021-04-20 14:26:30 +0100
commit5cafe0a147c7360fe19542a1cf14c91ab787a304 (patch)
tree37aa4568d3707cf82cbacd16dd58b77f715d5868
parentc930ad9dc189d831ac77f716df288f70178d4c10 (diff)
downloadml-embedded-evaluation-kit-5cafe0a147c7360fe19542a1cf14c91ab787a304.tar.gz
MLECO-1821: Documentation : Explain how to import a CMake build in Arm-DS
Signed-off-by: George Gekov <george.gekov@arm.com> Change-Id: Ia181023d6d2fa72407c6fc1b6575bc4b10557fb3
-rw-r--r--docs/sections/building.md15
1 files changed, 14 insertions, 1 deletions
diff --git a/docs/sections/building.md b/docs/sections/building.md
index 921d8cf..a5c9aff 100644
--- a/docs/sections/building.md
+++ b/docs/sections/building.md
@@ -278,7 +278,7 @@ cmake \
Toolchain option `CMAKE_TOOLCHAIN_FILE` points to the toolchain specific
file to set the compiler and platform specific parameters.
-To configure a build that can be debugged using Arm-DS, we can just specify
+To configure a build that can be debugged using Arm Development Studio, we can just specify
the build type as `Debug`:
```commandline
@@ -289,6 +289,19 @@ cmake \
-DCMAKE_BUILD_TYPE=Debug ..
```
+To be able to import the project in Arm Development Studio, add the Eclipse project generator and CMAKE_ECLIPSE_VERSION in the CMake command. It is advisable that the build directory is one level up relative to the source directory. When the build has been generated, you need to follow the Import wizard in Arm Development Studio and import the existing project into the workspace. You can then compile and debug the project using Arm Development Studio. Note that the below command is executed one level up from the source directory.
+
+```commandline
+cmake \
+ -DTARGET_PLATFORM=mps3 \
+ -DTARGET_SUBSYSTEM=sse-300 \
+ -DCMAKE_TOOLCHAIN_FILE=scripts/cmake/bare-metal-toolchain.cmake \
+ -DCMAKE_BUILD_TYPE=Debug \
+ -G "Eclipse CDT4 - Unix Makefiles" \
+ -DCMAKE_ECLIPSE_VERSION=4.15 \
+ ml-embedded-evaluation-kit
+```
+
To configure a build that can be debugged using a tool that only supports
DWARF format 3 (Modeldebugger for example), we can use: