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.

Where do I start?

Other Parts Discussed in Thread: CC2540

Hey all,

I'm a veteren Java developer, and lately I've been asked to take an interest in the CC2540 Mini Development Kit.

Here is the thing, I got the kit, I've downloaded all the programs required, I understand the part where I connect the kit to the debugger, and know when it is connected as explained in the device manifest Then I took a look at the SmartRF Studio 7, read all the documents, but I can't get heads or tails, of what my next step is.

I would like to know where do I start?

What do I need to learn, to start using the Kit? How do I start to program?

Are there any examples I can download? or Perhaps a step by step tutorial I could take a look at?

Thanks in advance,

Adam Zehavi.

  • Hello,

    I would start by going through the Mini User Guide and getting familiar with Btool and the commands sent. Understanding GATT tables will be key to future development.

    http://focus.ti.com/lit/ug/swru270b/swru270b.pdf

     

    Then you will have a few options.

    - Use IAR to compile and change programs. Examples are in TexasInsttruments\BLE-CC2540-1.1\Projects

    - Write C/Java programs to control USBDongles via serial commands.  Examples on our Wiki - http://processors.wiki.ti.com/index.php/Category:LPRF

     

    -Greg

     

     

     

     

     

  • Hi Adam,

    The CC2540DK-MINI comes unprogrammed, so the first step is to load the demo software into the kit using the debugger, as explained in the kit user guide (found here: http://focus.ti.com/general/docs/lit/getliterature.tsp?literatureNumber=swru270b&fileType=pdf). Once you have done this, you can do some simple things, like connect and read and write attributes, which are the buidling blocks of the BLE protocol. Using the example software, you can read the state of the buttons on the keyfob and some other simple things.

    If you want to go beyond this, then you need to write your own embedded software. At this time, this can only be done in C using the IAR 8051 toolset. When you have installed the BLE stack, documentation on how to use the BLE stack is installed into the C:\Texas Instruments\BLE-CC2540-1.1\Documentation directory (assuming you used the standard installation path). The Software Developer's Guide is the primary document when writing your own software. There is also a BLE Sample Applications Guide, which goes into more detail on the supplied sample applications, which should be useful to get you started.

    Hope this helps!

    Karl

  • I'm using Windows 7, and when I try to setup the USB dongle it gives the following error:

    The folder you specified  doesn't contain a compatible software driver for your device. If the folder contains a driver make sure it is designed to work with windows for x64-based system.

    Does this means I have to work with 86x system, or is there a 64x driver?

    Thanks,

    Adam.

  • Hello,

    I have it working on win7 64bit.  Were you able to download HostTestRelease into USBDongle using flash programmer?  Is the dongle LED red when you plug it in (it should be).  If it's green, then you may have sniffer or factory sw in there.

    -Greg

  • Finally, some sense, thanks, yes, the led is red now, and I could install the driver. I've been installing wrong hex files to it, I found a couple of instruction site which probably didn't fit with my computer, I didn't find any document indicating the cc2540_ble1.1_USBdongle_HostTestRelease_Master.hex file installation, could you refer to such document?

     

    Update, just now when I searched for "HostTestRelease" in the document you specified earlier, I found it... showing only once not even in Bold

    Adam.

  • Hi Karl.

    I was looking to develop a BLE application for the Arduino community (I'm ready for the barrage of comments re Arduino!, anyway...) but the fact that we have to invest in the IAR workbench to use the TI silicon is a bit off putting. Don;t get me wrong, I am happy to pay reasonable amounts for this...up to say $1k but from prior inquiries with IAR they are in a much higher ball park figure area.

    I am guessing that there is no alternative to this dev suite at this point in time?

    Oh, the application? low power temperature measurement.

    Regards,

     

    Dale

  • Well, I've managed to follow up on some of the tutorial, until I got to: "4.4 Using the Simple Keys GATT Profile", at this point the behavior described in the pdf does not match the actual results, the 0xFFE1 is invalid, and the "Discover Characteristic by UUID" does not return anything, unlike in the pdf. Did I install the wrong hax file?

    The files I've installed:

    USB Dongle: cc2540_ble1.1_USBdongle_HostTestRelease_Master.hex - The red led is on after programming.

    KeyFob: cc2540_ble1.1_SmartRF_SimpleBLEPeripheral.hex - The led light is orange after programming.

    Is this the right setup for the tutorial?

     

    Thanks in advance,

    Adam Zehavi.

  • Hi Dale,

    We understand that the entry fee for doing development is on the high side for some people, and we are looking into ways to reduce this.

    Best regards,

    Karl

  • Hi Dale,

    Since IAR has a some cost, there are a few other options.

    1) Use a MSP430 or other processor to drive it with serial commands from the HCI-Vender-Specific guide. You lose the advantage of SOC, but the application dev can be done with Code Composer for free.  We don't have examples for this though. - See option2

    2) Use two usbDongles plugged into PC. Here you can drive the usbDongles serially just like option #1.  You can also uses BTool to drive, although btool is more targeted at being the master device.

    Students also get a big discount on IAR.

    -Greg

     

  • My mistake was installing the KeyFob:

    > KeyFob: cc2540_ble1.1_SmartRF_SimpleBLEPeripheral.hex

    instead I should have installed: cc2540_ble1.1_keyfob_SimpleBLEPeripheral.hex 

     

    Now the tutorial performs as the pdf...

    Adam.

  • hi Adam,

       where is the tutorial PDF you mentioned?

    thanks,

    tony