This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2340R5: cc2340 FW upgrade process

Part Number: CC2340R5
Other Parts Discussed in Thread: CC2640R2F, UNIFLASH

Hi TI members,

Below is my building environment:

Software

Version

Code Composer Studio

12.3.0.00005 

SimpleLink SDK

7.10.00.35

XDCtools

3.62.1.16_core

We are working on migrating an old project from CC2640R2F to CC2340R5.


Please write a Linux program (in C or pseudo code) for us to demo cc2340 FW upgrade process including steps to enter upgrade mode, and the correct flash offsets for different partitions.  Per our understanding, there are 2 partitions of cc2340 need to be flashed.  Our expectation for this example would be like this: 

 

uniflash_demo <FW_file_part1> <FW_file_part2>   //uniflash_demo is the program name, <FW_file_part1> is the filename of the FW part 1, <FW_file_part2> is the filename of the FW part 2.

 

However, we don't know which format (HEX or BIN) should be used for above purpose.  It's good to hear from TI what format should we use in cc2340 FW upgrade?  Urgent case please.

Thanks.

BR,

  • Hi,

    Thank you for reaching out to us. We will look into this and get back to you as soon as possible.

    Best Regards,

    Jan

  • Hello,

    Thanks for more information, I think I better understand what you are trying to do now. Which is to flash or "upgrade" software with the uniflash cli (command line interface). We actually have a very good guide on this

    https://dev.ti.com/tirex/content/simplelink_lowpower_f3_sdk_7_10_00_35/docs/ble5stack/ble_user_guide/html/cc23xx/command-line-flashing-cc23xx.html?highlight=uniflash#flashing-device|-via-uniflash-command-line

    You should be using a bin file.

    Also you will be able to script this for automated flashing using any scripting language of your choice (python,etc...)

    Kind Regards,

    Rogelio

  • Hi Rogelio,

    Their CC2340 connects with external CPU by UART. They want to use serial bootloader to upgrade FW. The external CPU will run like cc13xx-sbl to upgrade CC2340 FW. Currently, please help clarity below items.

    1.Please provide how to convert .hex file to .bin file

    2.For PG2.0 + SDK7.10, is the CCFG content included inside .hex file ? If not, should customer upgrade CCFG separately after upgrading .bin image (above step 1) ? Else, please instruct how to upgrade for CCFG.  

  • Hi Jerry,

    I sent you an email with further explanation.

    1. There is no TI supported hex to bin conversion tool, however there are many outside resources that can help you accomplish this

    2. If you create your hex file through ccs the syscfg file will set the ccfg content at the bottom of the hex file.

    Kind Regards,

    Rogelio