I followed the instructions here () for adding SBL support to my CC2540 based project. The project compiles fine, but fails in the post-build .sim to .bin conversion. I poked around at the batch and javascript files to discover that they are really just wrappers for calling the TI provided sim2bin executable. When I manually invoke this executable from the command line using the application.sim file produced by IAR, I end up getting a .bin file that's the same size as the .sim, but I get the following command line error:
C:\Texas Instruments\BLE-CC254x-1.4.1.43908\Projects\ble\common\cc2540>cc254x_sim2bin.exe application.sim application.bin
Unexpected record tag (255) encountered, aborting.
I'm assuming the resultant application.bin is not really what I need. Can anyone from TI provide further info on the error I'm getting from sim2bin, or a way to verify that the .bin I'm producing is good?
For the record, I'm using the 1.4.1 stack with a custom project provided by TI.