Rebuilding the Flash and Boot Utils Package

To rebuild the serial flashing tool on a Windows PC, please follow the instructions

Contents

  [hide]

Download the Flash and Boot Utilities

From Sourceforge

For users who are using version 2.36, we strongly recommend upgrading to version 2.40 for a better setup and build experience.

Install and configure the required software

Cygwin

  • Download it here: http://www.cygwin.com/
  • When installing, add the following packages which are not selected by default:
    • Devel-->make: The GNU version of the 'make' utility
    • Devel-->subversion: A version control subsystem
    • Editor-->vim (or similar)
  • After installing, verify that the variables TMP and TEMP both contain /tmp.
echo $TMP
echo $TEMP
  • Both commands should above should return "/tmp". If some reason they do not you will need to edit the cygwin\home\[user]\.bashrc file to create them:
    • export TMP=/tmp
    • export TEMP=/tmp
  • You will need to restart cygwin after this step.

Microsoft .Net Framework

Compiler Tools

Note that both ARM and C6x compiler tools are required to build all components of the serial flasher, even for ARM-only parts.

ARM Compiler Tools (CodeSourcery G++ Lite)
  • Download the ARM compiler tools here: http://www.codesourcery.com/sgpp/lite/arm/portal/subscription3057
    • If using v2.40 or later: Edit the Common/build.mak file to have the correct ARM_TOOLS_PATH and ARM_TOOLS_PREFIX variables
    • If using v2.36 or earlier: Add the bin directory of the ARM cross-compiler tools to the system path environment variable.
C6x Compiler Tools
  • These are available free of charge: https://www-a.ti.com/downloads/sds_support/TICodegenerationTools/download.htm
    • If using v2.40 or later: Edit the Common/build.mak file to have the correct DSP_TOOLS_PATH variable
    • If using v2.36 or earlier: Add the bin directory of the TI C6000 Code generation tools to the system path environment variable (i.e. "C:\Program Files\Texas Instruments\C6000 Code Generation Tools 6.1.11\bin")

Note:

Since cl6x program (C6000 compiler)is a native windows app, it expects windows include and library search paths hence set DSP_TOOLS_PATH using cygwin path but DSP_LIB_PATH using Windows conventions. The cygwin path will help your make setup find the compiler and the windows library search path will enable the compiler find the rts libraries.

For eg

  DSP_TOOLS_PATH?=/cygdrive/c/ccsv4/tools/compiler/c6000/
  DSP_LIB_PATH?="C:\ccsv4\tools\compiler\c6000\lib"

CCSv3

If you wish to rebuild the CCSv3 projects included in the package from the command-line, you need to have the timake tool in the system path as well. This path is typically <CCSv3 Install Path>\cc\bin.

CCSv5

The CCSv3 projects files can be imported into the newer versions of Code Composer Studio, such as CCS v5.1.0. It is recommended to use the default import options when doing so. Do not copy the project files into your workspace. They should be left in place.


Rebuilding the Flash and Boot Utils package for a particular platform

  • For a particular platform, the extracted package will consist of a 'Common' directory and a '<PlatformName>' directory.
  • Open a Cygwin prompt, which is like a Unix/Linux prompt under Windows.
    • If using v2.36 or earlier, add necessary components to path
      export PATH=<arm-compiler-root>/bin:<C6000-Compiler-Root>/bin:$PATH
    • If using v2.40 or later, edit the ARM_TOOLS_PATH, ARM_TOOLS_PREFIX, and DSP_TOOLS_PATH variables in Common/build.mak as needed for your system
  • Enter into the <PlatformName> directory.
cd <PlatformName>
  • Edit device.mak to include only the part number and flash type required, in order to speed up the build process
vim device.mak
  • [Optional] To rebuild only the command-line tools (not the CCS projects), cd into the GNU directory.
cd GNU
  • [Optional] To rebuild only the CCS projects (requires CCS v3), cd into the CCS directory
cd CCS
  • If you're rebuilding everything then stay in the <Platform> directory
  • Run 'make clean' and 'make'.
make clean
make
  • If you wish to clean-up already built components, run 'make clean' from the path you wish to clean.
E2e.jpgFor technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Rebuilding the Flash and Boot Utils Package here.
Hyperlink blue.pngLinks
ARM Microcontroller MCUARM ProcessorDigital Media ProcessorDigital Signal ProcessingMicrocontroller MCUMulti Core Processor
Ultra Low Power DSP8 bit Microcontroller MCU16 bit Microcontroller MCU32 bit Microcontroller MCU

Leave a Comment

Comments

Comments on Rebuilding the Flash and Boot Utils Package


Robert chen said ...

there is a mistake in the section "C6x Compiler Tools".

Fix: Add the lib directory (but not bin)!

(i.e. "C:\Program Files\Texas Instruments\C6000 Code Generation Tools 7.3.2\lib")

Otherwise, you may get:

error: cannot find file "rts64plus.lib"

when doing make ubl in cygwin.

--Robert chen 04:03, 21 February 2012 (CST)

Rpjday said ...

The current OMAP-L138 flash tarball comes with a build.mak that contains the additional line:

DSP_CROSSCOMPILE=$(DSP_TOOLS_PATH)bin\\

and it's not clear from the above how that's compatible since you set DSP_TOOLS_PATH using the Cygwin path format. Can you clarify this?

--Rpjday 08:56, 16 February 2013 (CST)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值