Download, Install and Setup Keil
Note
Only supported in Windows
Prerequisites
Windows 11
Download and Install Keil
Download and install Arm Keil Studio Pack (MDK v6) and ARM CMSIS debugger as an extension from VScode.
Activate the license from the taskbar at the bottom of the screen after the installation bar at the bottom gets completed.
Ensure the Keil path mentioned in the “{SDK PATH}\imports_am13e230x.mk” is valid and update if not.Keil ARMCLANG path is auto detected at
%USERPROFILE%\.vcpkg\artifacts\*\compilers.arm.armclang\6.24.0\bin
Activating the CMSIS environment
In the lower taskbar there will be a option named
Arm Tools. Click on it and then click onConfigure Arm Environmentchoose the latest version of Arm CMSIS-Toolbox, Arm Debugger , Kitware cmake tool, Ninja Build.These will automatically install and then click on
Arm Toolsand activate environment.
Install LLVM (llvm-objcopy)
llvm-objcopy is required to build the signed examples (signed ROM / MCUboot images) with Keil Studio.
Arm Compiler’s fromelf utility cannot replace the signature header and trailer in the linked image,
so the SDK uses llvm-objcopy during the post-build signing step. It is not needed for unsigned builds.
In Visual Studio Code, open the Command Palette (
Ctrl+Shift+Pon Windows/Linux orCmd+Shift+Pon macOS) and run Arm Tools: Configure Arm Tools Environment.Select Arm Toolchain for Embedded (or LLVM Embedded Toolchain for Arm) and save the configuration. Keil Studio automatically downloads the toolchain and adds
llvm-objcopyto the workspacePATH.Confirm the installation in a new VS Code terminal:
llvm-objcopy --version
Note
If llvm-objcopy is not found, the signed Keil Studio examples are still built, but the signing step is skipped and
the output remains unsigned.
Install AM13E230X CMSIS-Pack
Use this command in the cli to load the pack from the public CMSIS pack index:
cpackget add TexasInstruments::AM13X_DFP@1.0.0.pack
Build SDK Libraries
Ensure in imports_{DEVICE}.mk,
{CPU}_KEIL_ARM_CLANG_BUILD_ENABLEis set to y. Refer to Enable Toolchains in imports.mk for more details.Build libraries from root of SDK:
gmake TI_SDK_CMAKE_BUILD_EXE_TARGETS=OFF
Note
For users using flex-licensing, the inbuilt parallelization of the build system may consume multiple license slots and cause build errors. To solve this, set the following environment variable before running make:
set CMAKE_BUILD_PARALLEL_LEVEL=1
$env:CMAKE_BUILD_PARALLEL_LEVEL=1
Enabling SysConfig in Keil
Edit the following files and adjust the SDK and Sysconfig installed directory
{SDK PATH}/tools/keil/sysconfig_{DEVICE}.batThe cproject file automatically executes the command to generate sysconfig files.
code --install-extension {SDK_PATH}/tools/keil/local.ti-sysconfig-launcher-0.0.1/ti-sysconfig-launcher-0.0.1.vsixUse the above cli command to install Sysconfig launcher extension in vscode.To change the sysconfig path or version go to
%USERPROFILE%\.vscode\extensions\local.ti-sysconfig-launcher-0.0.1change the path inside package.json file to reflect the new path or version number.The path will be undertiSysconfig.sysconfigGuiPaththen do a reload window in VScode.