element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
RoadTests & Reviews
  • Products
  • More
RoadTests & Reviews
Blog Introduction to Bluetooth Low Energy Light Development Kit - CC2540TDK-LIGHT
  • Blog
  • RoadTest Forum
  • Documents
  • RoadTests
  • Reviews
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
RoadTests & Reviews requires membership for participation - click to join
  • Share
  • More
  • Cancel
  • Author Author: tomaja
  • Date Created: 6 Nov 2015 3:43 PM Date Created
  • Views 1863 views
  • Likes 4 likes
  • Comments 8 comments
Related
Recommended
  • ble
  • cc2540tdk-light
  • illuminated_multirotor
  • tps92512evm-001
  • lighting
  • ledroadtestplus
  • led
  • texas_instruments

Introduction to Bluetooth Low Energy Light Development Kit - CC2540TDK-LIGHT

tomaja
tomaja
6 Nov 2015

Related posts:

Kit unboxing - LED RoadTest

Introduction to Bluetooth Low Energy Light Development Kit - CC2540TDK-LIGHT

Android Support for TI's BLE LED Control

MSP430FR4133 Launchpad - Magnetic North Visualisation

Illuminated Tricopter Upgrade - Adding an Addressable LED Ring

MSP430FR4133 BoosterPack for Illuminated Tricopter

Bookshelf Lights Using TI's CC2450 BLE LED Modules

MSP430FR4133 Launchpad with Custom BoosterPack in Action

MSP430FR4133 Launchpad with Custom BoosterPack in Action - appendix

MSP430FR4133 Launchpad with Custom BoosterPack update

Adding Remotely Controlled Headlights to Tricopter

 

As I mentioned in my initial post, I played a bit with Bluetooth Low Energy Light Development Kit - CC2540TDK-LIGHT - TI Tool Folder from Texas Instruments.

In this post, I will share my initial impressions.

 

Out of the box experience

After I opened the kit I tried to see if I can pair the provided BLE modules with my Android phone. For a reason unknown, scanning for Bluetooth devices initially failed so I assumed that I have to flash the device with some other firmware to be able to test it like that - but that was wrong. Another attempt with proper power supply (1A, instead of my computer's USB port) succeeded! I was able to pair the device with my phone.

 

I didn't find any TI's application for Android that would work with these modules, quick reference only mentions the iOS application which is a problem since I don't have access to iPhone. Instead, I tried using the Cypress Android application (https://play.google.com/store/apps/details?id=com.cypress.cysmart I installed while I was working with their BLE Pioneer Kit. Since this application was not designed to work with TI's module it showed some unknown service that I assumed is the one that I need to use to gain control over RGBW LEDs - and this turned out to be right.

 

This unknown service contains five characteristics - four single byte characteristics for Red, Green, Blue and White LED and one four bytes characteristic that combines them all into a single value for faster control.

During my tests I noticed that minimum value I can set for Red, Green and Blue LED is 0x04, anything lower than that will turn the LED off. White LED, however, will still be turned on with a value of 0x01.

 

CySmart app also lets software developers make their own application using information that can be obtained from it. I plan to do that later when I get to that point in my project.

The following video shows how anyone can control BLE LED module using Cypress CySmart app (I started with all LEDs turned off because the emitted light is really strong):

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

 

Making your own firmware

CC2540 is based on 8051 MC and IAR Workbench is required to program it. More than a dozen example projects are provided in the SDK and that looks very nice.

However, this is where I'm stuck at the moment. I installed the IAR Workbench for 8051 (CC2540 is based on 8051 MC) but code size limited version seems to be insufficient. Every code sample I tried to build failed with code size error displayed (you need the full version or 30 day trial I think). I would like to ask element14Dave for some directions - do we have someone from TI to help us? Maybe there's an alternative to IAR Workbench?

 

My plan was to make my own program that would turn the LEDs in a couple of modes and doesn't require a connection every time LED is dimmed or turned on or off (connection would be used only to tell the module which mode should it be running).

 

 

Thanks,

Dragan

  • Sign in to reply

Top Comments

  • dougw
    dougw over 9 years ago +2
    Excellent post Dragan. I am wondering if the EZ-FET programmer on the MSP-EXP430FR4133 can be used to program the CC2540.
  • tonyboubady
    tonyboubady over 9 years ago +1
    Thank you...Really what I am looking for...
  • tonyboubady
    tonyboubady over 9 years ago in reply to dougw +1
    I have the same question...but as far as I know with little document reading...we should buy CC-debugger or flash dongle from TI...but I am not sure yet.
  • tonyboubady
    tonyboubady over 9 years ago in reply to tomaja

    I am not sure yet too, in document its say either SmartRF or IAR Workbench along with CC-Debugger...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • tomaja
    tomaja over 9 years ago in reply to tonyboubady

    Yes, but what hardware interface would you use?

    SmartRF Flash Programmer is just a piece of software if I'm not being wrong...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • tonyboubady
    tonyboubady over 9 years ago in reply to tomaja

    I think you could use this SmartRF Flash Programmer for free...SmartRF Flash Programmer - FLASH-PROGRAMMER - TI Software Folder

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • tomaja
    tomaja over 9 years ago in reply to tonyboubady

    Yes, that's my conclusion too.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • tomaja
    tomaja over 9 years ago in reply to dougw

    Thanks! No, from what I read it seems that this is the only option: Debugger and Programmer for RF System-on-Chips - CC-DEBUGGER - TI Software Folder

    They do have it in Farnell store so voucher can cover it: CC-DEBUGGER - TEXAS INSTRUMENTS - DEBUGGER AND PROGRAMMER, FOR RF SOC | Farnell element14

    Still, there's this IAR Workbench issue, it only works with full version or one month trial (I have the code size limited version installed)...

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube