• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Low Power RF & Wireless Connectivity » Low Power RF Bluetooth® Low Energy & ANT Forum » CC2540: Bootloader and application in a single .hex file
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

CC2540: Bootloader and application in a single .hex file

CC2540: Bootloader and application in a single .hex file

This question is not answered
Pierre Michard
Posted by Pierre Michard
on May 11 2012 09:36 AM
Prodigy10 points

Hi,

We would like to create a single .hex file containing the bootloader (a modified version of SBL) and the application code. This will allow us to do an initial flashing during the production of our product.

I saw that the script "cc254x_ubl_pp.bat" allows to do that but no documentation is provided about the "ProdHex" option. Moreover I don't understand the following comments in the script:

::   %5 (Required for "ProdHex") the number of lines in the UBL hex file to pre-pend to the
::   application image (the remainder of the UBL hex file will be appended to the application).
::   Currently UBL is only using the first page to intercept the IVEC's, so 128 + 1 = 129 to
::   include the hex file header line (which is stripped from application image when appending it
::   to this root area of the UBL).

  > Is that the same in the case of SBL?
::
::   Note that the above serial boot loader corresponding to the RPC transport of the application
::   build target (e.g. CC2540F256, USART0) must have been built prior to this batch file execution.
::   This is accomplished with the 'Pre-build command line' option invoking the cc254x_ubl_pre.bat
::   with the corresponding arguments as specified in that batch file.

I don't understand that comment at all. Moreover the cc254x_ubl_pre.bat script is not provided.

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • hutz hutz
    Posted by hutz hutz
    on Jul 11 2012 10:41 AM
    Prodigy20 points

    HI,

    i also don't unterstand what to do here.

    also %4 is very confusing. I need to get the UBL working for an prototype product which is planed to be mass produced, but the documentation is not very helpfull :-(

     

    Please Help me

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Eng351
    Posted by Eng351
    on Jul 11 2012 22:05 PM
    Genius3130 points

    Have you tried programming the bootloader from the SmartRF programmer, loading the application via USB/serial, then reading back the entire flash by SmartRF? Another way is to write a small PC app that can merge the two hex files

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • hutz hutz
    Posted by hutz hutz
    on Jul 19 2012 09:42 AM
    Prodigy20 points

    Hi,

    yes, and that works fine. I have only problems with that automatic .hex generation directly from IAR. But i'm on the way to solve that. I've seen some things which i can try.

    If this will not work i will merge the hex files by myself.

    Thank you.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • TIABO
    Posted by TIABO
    on Jul 20 2012 04:35 AM
    Expert6785 points

    The SmartRF Flash Programmer supports the .hem format, which is basically a Intel hex merge file. It can be used to program two flash images as one, which in turn can be programmed using the Flash Programmer command line interface.

    See Flash Programmer <install dir>\HemFileExample for, well, an example :)

    Br,
    ABO 

    PS. You won't create a single hex image, but you can program two images using a single call to the SmartRF Flash Programmer CLI.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use