CMSIS-Build  Version 0.10.0 (beta)
Tools, software frameworks, and work flows for productivity with CMSIS based projects
 All Pages
cbuild_uv.sh: Export MDK projects to CMSIS-Build

The cbuild_uv.sh script calls µVision and exports all targets of a Keil MDK project to the CPRJ format. The script then invokes the cbuild.sh script for each exported project target.

Invocation

It is called from the Bash command line with the following syntax:

cbuild_uv.sh <project-file>.uvprojx

Where:

cbuild_uv.sh is the name of the script.

<project-file> is the filename of a µVision project.

Note
  • The environment variable $MDK_ROOT must refer to the base directory of the Keil MDK installation.
  • Some MDK features are not converted as not all build features of µVision are available in command line build process. For example:
    • User commands pre and post build
    • fcarm code generator
    • Linker script generation. Instead, the linker script generated by MDK is used by CMSIS-Build.

Usage Example

$ cbuild_uv.sh FTP_Server.uvprojx
(cbuild_uv.sh): Build MDK Project 0.10.0 (C) 2020 ARM
uVision has created CPRJ files for the following targets:
FTP_Server.Debug.cprj
FTP_Server.Release.cprj
 --------------------------------------------------------------------
 calling cbuild.sh for FTP_Server.Debug.cprj
 --------------------------------------------------------------------
 ...
 --------------------------------------------------------------------
 calling cbuild.sh for FTP_Server.Release.cprj
 --------------------------------------------------------------------
 ...
builds completed for:
FTP_Server.Debug.cprj
FTP_Server.Release.cprj
total: 2 failed: 0