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.

OAD Project Post Build batch file error cc254x_ubl_pp.js

Other Parts Discussed in Thread: CC2541, CC2540

I'm following the OAD Guide for CC254x.  I keep getting a Windows Script Host error when IAR tries to run the cc25x_ubl_pp.js file at Compile time.  It says the file cannot be found.  I've triple checked the path in the Post Build Command Line.  I didn't any mention of this problem on the forums which leads me to believe this may be a corrupted file, but I've tries deleting/re-installing the BLE stack a few times to no avail.  Thanks guys.

  • Can you provide a screen clip of the Post-Build Action and what project and configuration you are using? Here is mine. The project is SimpleBLEPeripheral for CC2541 using the CC2541-OAD-ImgA configuration.

    The error you are seeing is because it cannot find the .sim file in the directory listed as the third argument to the .bat file. In the case above, when I built the project it created a SimpleBLEPeripheral.sim in <PROJECTDIR>/CC2541DB/CC2541-OAD-ImgA/Exe/

    All I did was open the SimpleBLEPeripheral in IAR, switch the configuration to CC2541-OAD-ImgA and build the project. I would check to make sure that the path you are providing matches the build config you are using or that there aren't any other differences between where the .sim is being created and the path you are providing to the .bat

    -Matt

  • The Post-Build Action does not show in the Build Window of IAR when I compile.  I simply get the Window Error prompt I posted.  My Command Line Post-Build Configuration in the project settings are as follows:

    "C:\Texas Instruments\BLE-CC254x-1.3.1\Projects\ble\common\cc2540\cc254x_ubl_pp.bat" "$PROJ_DIR$" "ProdUBL" "$PROJ_DIR$\CC2540-OAD-ImgB\Exe\TestFirmware_V1_ImageB"

    The folder in the last argument contains two files,  *.d51 and *.hex but no *.sim.   I omitted the step in the OAD Guide (Section 10 step 9) which selected the Extra Output option.  This always gave me a Fatal Error [e62]: File name "" used for multiple files.  Also I don't understand where a .sim file would come from as all the instructions advise to use intel-extended output file formats.  Thanks for your help

  • In section 10 in the OAD Guide you are just building the image and do not need to produce the .sim file. There is a note included below step 11 in section 10:

    "You may receive a post-build error. This is because you have not yet produced the .sim file. You can ignore this error

    at this point."

     

    You will need a .sim file for the over the air image you produce in section 11 but if you follow those steps you will produce a .sim file as output and should not receive an error.

    -Matt