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.

CC2640: Programming a BLE module using BLE-STACK - V2.2.5 for different power modes.

Part Number: CC2640
Other Parts Discussed in Thread: BLE-STACK,

Hello there,

I wanted to measure the current consumption by the BLE module in peripheral and central mode for sleep and standby power modes.

I have downloaded BLE-STACK - V2.2.5(www.ti.com/.../BLE-STACK) and flashed the Simple_Peripheral program(available in the example code of the stack) using SmartRF Flash Programmer 2 tool.

The hex file used by this tool is made from the python script provided in the development manual with this stack(Application hex file + Stack hex file). 

Before flashing the program my BLE was getting into advertisement mode and was getting discovered. After flashing the program it is not discoverable now and no communication is taking place. Moreover now no program is being flashed into the module.

Can you please guide me to revert the changes and how to send BLE in Sleep and Standby mode?

(Before flashing the software the BLE was configured for peripheral mode)

  • Do you use custom CC2640 board and do you build Simple_Peripheral app/stack hex by yourself?

  • Hi,

    Could you specify a few elements:

    • Which hardware do you use? Are you using a launchpad?
    • Which hex files are you using? The python script you are referring to is only required for OAD images. If you take one of the images provided in examples\hex, you don't need to use the python script and you can directly flash the hex file on the device.
    • How do you know that no program is being flashed on the device? Have you tried to mass-erase the device?

    Sravya Pappu said:
    Can you please guide [...] how to send BLE in Sleep and Standby mode?

    The BLE stack selects itself the proper power mode (active, standby, sleep, etc.). No specific action is required from your end.

    Best regards,

  • Yes I have a custom CC2640 board.

    The hex file of App(simple_peripheral_cc2650em_app.hex) and Stack(simple_peripheral_cc2650em_stack.hex) was given in the folders of example code, I have combined the hex file of both using the python script given in the BLE stack development guide.

  • The prebuilt App(simple_peripheral_cc2650em_app.hex) and Stack(simple_peripheral_cc2650em_stack.hex) might not work directly on your CC2640 custom board. You have to check if you use the same chip package (7x7) and the same schematics. If not, you need to revise source code according to your chip package and schematics to rebuild your own application and stack.

  • Hi,

    • Hardware : TarangMini TI05BL03. I am using a BLE demo board.
    • I have not tried mass-erasing the device. when I am trying to program another hex file (which is working with another hardware) it is not getting flashed in the hardware through the SmartRF Flash Programmer 2 tool.  
    • Hex files which I am combining using the python script are  App(simple_peripheral_cc2650em_app.hex) and stack(simple_peripheral_cc2650em_stack.hex)

    How do I know that the BLE module has entered which power mode? Is there any status bit or something?

  • Don't know this TarangMini TI05BL03 board. Can you elaborate what it is.

  • Hi,

    Can you guide me where can I find the chip package and which schematic is being used by the code so that I can match with my custom board?

  • Hi,

    TarangMini TI05BL03 is a new generation BLE module.

    It has a built in Bluetooth 5.1 stack and application profiles with simple host interface on UART.

    2.4Ghz wireless operation, supports upto 2MBPS air data rate. 

  • Can you provide its datasheet and schematics?