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.

CC2540 MINI DK and DK connection problem

Other Parts Discussed in Thread: CC2540

Hi,

I am new in CC2540 programming, I am trying to write a simple program that use Keyfob and CC2540DK, I want the Keyfob act as a GATT server, CC2540DK act as a GATT client to read the value include the key pressed information of Keyfob, and show on the LCD display, which sample program do you think is a good reference for this program?

Another problem is that I download the Keyfobdemo program into the MINI keyfob and SimpleBLECentral program into the CC2540DK, I am trying to establish the connection, but the CC2540DK shows can not find device, but at the same time BTool can find the Keyfob and establish the connection, why?

  • Hi Xiaochuan,

    the keyfob must be flashed with the SimpleBLEPeripheral project. I do not have the DK so I do not know which program needs your big board.

    In the second case, are you pressing the right button for the keyfob start advertising?

  • Yes, I pressed the button to start advertising, I was thought that if the SimpleBLECentral can discover the BLE device which is doing the advertising, so it should be able to find the keyfobdemo because it is also doing the advertising, but in my experiment it can't, so I am asking that if I need to change the program to let the Keyfob findable by the DK with SimpleBLECentral program?

  • Hi kazola,

    I have another question about the green led on USBdongle, do you know how to light it on, I tried HalLedSet() for all four led declared in the driver, but still it is not light on.

  • In HostTestRelease the green LED is on by default. Check that project.

    This is from the schematic. In theory P1_1 = 1 should activate red led and P1_1=0 deactivate it.

    I do not know if doing P0_0 as output and then P0_0 = 1 (5V versus 3V) deactivates the green LED, since it is mounted differently but try it :)

  • Yes, I did not notice that before, they use different port for these two device, so maybe I have to change the hal_led.c to make the green led work, right? do I have to change other files if I want to use the fucntion of led that TI provide?

  • I guess it can be done in several ways.

    I do not think you have to modify hal_led.c.

    P0_0=0 like statements are valid.