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: bin files and CCFG files

Other Parts Discussed in Thread: CC2340R5, UNIFLASH

Tool/software:

Hi,

We are currently working on the SBL for CC2340R5. 

We have ported the SBL host implementation code found here onto our platform. Following the instructions given in the readME, we have extracted the CCFG file using the UNIFLASH tool but for the application image how do we extract the bin file? 

Currently in the SimpleLink_f3_lp_sdk, building all the projects produce ".out" and ".hex" files. 

How do we get the binary for the same as it is one of the arguments expected by the SBL tool.

  • Hello!

    I apologize for the delayed response; I was out sick. 

    The easiest way to generate binary files is by adding a post-build step in your CCS project. Below are the instructions for doing so:

    First, right click on your project and select Properties:

    In the window that pops up, select Build then click on Steps:

    In the Post-Build Steps add the following line:

    ${CG_TOOL_ROOT}/bin/tiarmobjcopy ${BuildArtifactFileBaseName}.out --output-target binary ${BuildArtifactFileBaseName}_noheader.bin --remove-section=.ccfg

    What this will do is generate a binary file of the project that excludes the CCFG. This is necessary since the CCFG is flashed separately (as you may already know since you've generated it).

    This should be enough to use the tool.

    Hope that helps!

    Best,

    Nima Behmanesh

  • Hi Nima, 

    Hope you are doing well. Thanks for the update. Yes the above fix is working. However, I see that this utility will not for CC27xx devices. I will raise a separate ticket for the same.

    Regards,

    Sandeep

  • Hi Sandeep,

    I'm glad it worked for you. Although the CC27xx version of the tool is in the plan, a timeline for its implementation has not been set. 

    Best,

    Nima Behmanesh