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.

.bin file for OAD not getting generated (CC1350)

Other Parts Discussed in Thread: CC1350

Hi,

I'm trying to generate a .bin file for OAD for CC1350 using the steps listed in project0. I am able to generate the .hex file but when I use the python script oad_image_tool.py to generate the .bin file, the resulting .bin file has a size of 0 bytes. Basically, it's an empty file and contains no data.

What am I missing?

Additional question: Is it possible to skip the OAD process and just flash the Node and Concentrator example projects manually over USB connection?

Thanks,

Vivek

  • Can you post the cmd line you are using for the script?
  • Regarding the question:

    "Additional question: Is it possible to skip the OAD process and just flash the Node and Concentrator example projects manually over USB connection?"

    Yes this is normally the way it is done using the debugger and Emulator on the Launch Pads. This is can be done after step 1 of the Project 0 steps:

    "Import rfWsnDmNode from the Resource Explorer in Code Composer Studio."

    After this connect the Board via USB and you can follow the steps in the resource explorer to build, download and debug the example without the OTA.

    Regards,
    TC.
  • I have the same problem. Have someone found a solution?
    Thanks.
    Regards.
  • The command I use is:
    python oad_image_tool.py rfWsnDmNodeOAD_CC1350_LAUNCHXL_TI.hex -ob rfWsnDmNodeOAD_CC1350_LAUNCHXL_TI_oad.bin -m 0x1000 -r :0xE000
  • I'm sorry but I have to ask you again the same question because I can't find a solution, unluckly I don't know python and I've tried for hours with different configurations without results.
    I alwaas get an empty file if I follow project0. Any ideas?
    Thanks.
    Regards.
  • Ok, I got something.

    I've commented this part of the code:

    # Determine if normal output should be presented
    #if vargs.quiet or (vargs.hexfile[0] is sys.stdin) or (vargs.out is sys.stdout) or (vargs.outbin is sys.stdout):
    # oldPrint = __builtin__.print
    # def myprint(*args, **kwargs):
    # pass
    # __builtin__.print = myprint

    and I've changed INT_FL_RSVD_PG31 from 0x1F000 to 0x2F000.
    So, now the script works and I have my bin file, but my question is: will it work?
    Do you think that I can try an upgrade from BLE?

    Thanks.
    Regards.
  • It doesn't work yet.
    I've seen that script fails because at the end of my hex file I have a reference to address FFA8.

    :20EC400000200C2F0020142F0020142F00201214001208FF120C001CE200003C290020088B
    :20EC6000000000010040120500120000000000000001010021A20001000000000000000064
    :20EC800000010110000100000000000000000000000101100001000000000000000000004E
    :20ECA00000010110000100000000000000000000000101100001000000000000000000002E
    :20ECC000000101C800010000000000001FBD000057BA0000E0E60000C826002070EC00004C
    :20ECE0002005002080EC00003004002090EC000040040020A0EC000000050020B0EC0000E2
    :0CED000010050020C0EC00000000002006
    :020000040001F9
    :20FFA80000008001100088FFFDFF58003AFFBFF3FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF2
    :20FFC800FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00FFFFFFFF00FFFFFFC500C5FFAA
    :18FFE800000000FF00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF12
    :00000001FF

    What do I have to do?
    Thanks.
    Regards
  • Hi Matteo,

    I never solved the problem. I actually did not need the OAD flashing feature. I just flashed the concentartt and node examples directly through the debugger.

    Regards,
    Vivek
  • Hi Vivek,
    so we have to wait for somebody helping us... but I suggest TI developers to focus on the last part of file bin I've posted...

    Regards.
    Matteo
  • Hi Vivek,
    I don't know if you are still interested but we've solved this issue: you need to follow this tutorial: software-dl.ti.com/.../prop_05_cc1350lpdm_project_zero.html

    And in particular you have to follow point 7: "Right-click on the file ccfg.c file, select the item Exclude from Build".

    Regards.
    Matteo