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.

automate cc2640 programming via Flash Programmer2 or CCS UniFlash

Other Parts Discussed in Thread: CC2640
Would like to know how to automate the Erase, Program and Verify functions already performed in both applications from TI.
 
For a production environment these two programs are not production friendly as we like to call it. 
Too many mouse or keyboard steps involved.
 
ST Micro has a program for their devices in which it has all the features similar to TI's software, but also an auto mode.
Insert board into fixture, and program starts the operation automatically.

Thanks

  • Hi,

    Have you tried the smartRF Flash programmer 2 CLI?
    Open smartRF flash programmer 2, then click on question mark located at the right upper corner of the GUI window.
    In the pop up window click on "Browse complete help document", in the new window click on "Command line interface (CLI)"
  • Hi,

    The latest version of SmartRF Studio 7 includes a API called RTLib. 

    You easily install it by clicking on the help icon in SmartRF Studio and select install. 

    The package includes the Radio Test Library(RTLib) with a simple application example.

    The Radio Test Library is used to communicate with a CC26xx/CC13xx radio device. 
    The library supports a number of test features:

    • Link test with configurable packets and number of packets to be sent
    • Continuous TX 
    • Continous RX 
    • Reading of RSSI value on receiver.
    • Reading of Frequency Offset on receiver.
    • Program flash from file. Several file formats are supported: .bin, .hex and .elf.
    • Program flash from a data buffer.
    • Read memory from the target device.
    • Write non-flash memory on the target device.

  • Thank you so much.

    That was exactly what I was looking for.

    In the end I used the following lines

    to erase, program and verify

    srfprog -t lsidx(0) -e forced

    srfprog -t lsidx(0) -p -f "file_name.hex"

    srfprog -t lsidx(0) -v -f "file_name.hex"

    Only thing missing is to lock the CC2640, but will do that later.

    Stefan

  • Hi,
    If you want to lock the debug interface, you can use
    srfprog -t lsidx(0) -w ccfg(ldbg)

    or, if you want to do it together with programming a file, you can use

    srfprog -t lsidx(0) -p -f "file_name.hex" -c ldbg

    Regards,
    Ida