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.

CC2541: Unable to perform OAD.

Part Number: CC2541
Other Parts Discussed in Thread: CC2540

I am working on cc2541. I want to perform over the air flashing but I am unable to generate the correct BIM file which is necessary for OAD.

Kindly help me.

  • Hello,

    The Over_the_Air_Download_for_CC254x.pdf contains information on how to perform OAD and how to set up your application to support OAD. This file is located in the SDK directory. This guide is located at C:\Texas Instruments\BLE-CC254x-1.5.2.0\Documents (if using default install location). Chapter 9 details how to produce the BIM and chapter 10 details how to produce the images.

    Best Regards,

    Jan

  • Hi Jan,

    Thanks for the help.

    I followed the steps mentioned in the pdf Over_the_Air_Download_for_CC254x.pdf.

    Now I am getting linker error while producing IMG A file.

    Error discription:

    Linking
    Tool Internal Error:
    Internal Error: In function: unknown
    Diagnostic: unexpected exception
    P0: 1 P1: 0
    Internal Error: In function: unknown
    Diagnostic: unexpected exception
    P0: 1 P1: 0
    Error while running Linker

  • Hi,

    No problem! What step is producing this error? Is it step 11 "Build and download the project on a SmartRF05 with a CC2541EM" If so, then can you try to complete the following steps? It is possible to get errors here that will get resolved once the subsequent steps are completed. Also, can you try to perform these steps with an unmodified simple_peripheral example as well to see if we are able to observe the same behavior?

    Best Regards,

    Jan

  • Hello,

    Yes, Step 11 is producing error. Same error for Image B also.

    Tried to build the unmodified simple_peripheral, same behavior is observed.

    IDE: IAR EW for 8051 v10.40.1 Trail edition.

    BLE stack: 1.5.0.16

  • Hi Rohit,

    To confirm, you are unable to build an unmodified simple_peripheral example? If so, then can you try uninstalling and reinstalling the SDK. Chapter 8.3 Using IAR Embedded Workspace contains information on how to properly build a project in IAR. Can you verify if following along with these steps leads to a compilation error?

    Best Regards,

    Jan

  • Hello Jan,

    I uninstalled the SDK and reinstalled it. Tried to build the unmodified SimpleBLE_peripheral example. Same behavior is observed.

    Error description:

    Linking
    Tool Internal Error:
    Internal Error: In function: unknown
    Diagnostic: unexpected exception
    P0: 1 P1: 0
    Internal Error: In function: unknown
    Diagnostic: unexpected exception
    P0: 1 P1: 0
    Error while running Linker.

  • Hi Rohit,

    Thank you for confirming. To clarify, you are following along with the instructions provided in Chapter 8.3, correct? I have done some research and verified that the recommended IAR version for this SDK is IAR v10.30.1 as mentioned in the README.txt. Can you verify if using this version while following along with the instructions in Chapter 8.3 leads to a successful build?

    Best Regards,

    Jan 

  • Hello Jan,

    Thank you for the information. 

    IAR v10.30.1 is being used. But now I am facing different error related to post build actions.

    Error description: Windows cannot find the file cc254x_ubl_pp.js specified. Please find the snapshot of the error

    But I do see cc254x_ubl_pp.js file in the path BLE-CC254x-1.4.2.2\Projects\ble\common\cc2540.

    Please help me to resolve this error.

    Thanks & regards

  • Hi Rohit,

    Got it. Thank you for getting the recommended version! Is this post-build error occurring when completing step 11 of the OAD guide? If so, then this may be okay. Can you try to complete step 12 to see if the issue is resolved? Otherwise, can you try building an unmodified peripheral example to see if we are able to successfully build? This will ensure that our build environment is properly set up.

    Best Regards,

    Jan

  • Hello Jan,

    Yes, this error is occurring when completing step 11 of OAD guide. Step 12 completed but issue is still there.

    Build environment setup is working fine. (successfully built the unmodified project).

    Issue:  Windows cannot find the file cc254x_ubl_pp.js specified.

    The file cc254x_ubl_pp.js is present in the path BLE-CC254x-1.4.2.2\Projects\ble\common\cc2540.

  • Hi Rohit,

    Thanks for the clarification. Can you specify which drive you installed IAR in? I did some research and it seems that there is a known bug related to the bat file that occurs if the install is not located in the C drive. The thread below shares the solution: https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/314089/bug-in-ti-ble-cc254x_ubl_pp-bat-file-unable-to-find-cc254x_ubl_pp-js

    Best Regards,

    Jan

  • Hello Jan,

    Thank you for giving this information.

    I am able to generate .bin file