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.

CC2650MODA: SmartRF Flash Programmer V2 - Program BLE name & Bluetooth passkey

Part Number: CC2650MODA

Customer using SmartRF Flash Programmer V2 for production line programming, using CLI

Can we use SmartRF Flash Programmer V2 to program the BLE name and Bluetooth passkey? Can it be done using CLI? 

  • Hi Eddie,

    There is no register or special flash location where the passkey is found or the blutetooth name is found. But the answer is still sort of yes.

    1. Reserve some space in flash for two symbols at fixed locations, either with #location pragma or with the linker file, and fill this with '0xFF'
    2. In your application init, try to read this symbol location, and compare with 0xFF. If there is data there, copy this data into whatever variables the device name and pass keys are stored in. Otherwise copy in some default values
    3. In production, perform a merge of a) default hex file where this location is FF, and b) a hex file with the desired values, and save into a temporary file.
    4. Flash this temporary file
    or 3b) Flash first one, then the other. Since it's filled with FF you don't have to merge first. But for the second image make sure you don't erase before writing.

    The "placeholder" locations need to be at a fixed address, and have fixed lengths so that you can know where to place the override information in the hexfile with the desired values.

    To my knowledge we don't have an example of this.

    Best regards,
    Aslak