CC2650: start with simple_peripheral and simple_central

Part Number: CC2650

Dear support,

I want to get my 2 launchpads connected and develop some projects on them so I'm learning about simple_peripheral and simple_central. I got 2 problems now.

First, I can't find simple_central in the simplelink/ble_sdk_2_02_01_18/examples/2560lp, and I wonder if I can find the project through internet somewhere else.

Second, I find problems using serial to watch the output of my devices. I use PuTTY and set the right configuration but nothing happens after I start up the simple_peripheral. I could see the simple_peripheral on my smartphone using ble scanner, and I could see the output of other demos.. I learn about the project via this link software-dl.ti.com/simplelink/esd/simplelink_cc26x2_sdk/1.60.00.43/exports/examples/rtos/CC26X2R1_LAUNCHXL/ble5stack/simple_peripheral/README.html

Regards,

  • Hi,

    There is no simple_central project available out of the box for the CC2650LP, but there is one available for the cc2650em. You should be able to port the project to use the LP board instead.

    In terms of UART output, if you can see UART output from other projects, then I would expect there to be something missing. Do you have access to a logic analyzer? If so, then can you verify if you are getting any UART output at all on the UART pins?

    Best Regards,

    Jan

  • Hi,

    About the HART issue, can you tell me what exactly I can do to fix it? Or maybe show me some manuals.

    Best Regards,

    Shaw

  • Hi Shaw,

    Can you see UART output when using other projects? Particularly driver only projects?

    Best Regards,

    Jan

  • Hi Jan,

    I tried adcbufcontinuous demo and I can see the output from terminal. And I know little about driver only projects.

    Best Regards,

    Shaw

  • Hi Shaw,

    Got it. Thank you for confirming. That is what I wanted to verify. Can you try re-flashing simple_peripheral and observing the terminal output? I would like to confirm that using the same board we can see UART output on the adc project, but not on the ble project.

    Best Regards,

    Jan

  • Hi Jan,

    Thank you for replying. When it comes to simple peripheral or simple central, the terminal just remains blank no matter what I do. I tried to modify the predefine symbol as some people suggested but it seemed nothing changed.

    Best Regards,

    Shaw

  • Hi Shaw,

    Got it. Thank you for confirming. Can you confirm the UART settings you are using to observe the UART activity? Is the simple_peripheral project you are using the one that is pre-made for the cc2650lp project? To confirm, have you updated the Display_open() function call to output to UART?

    Best Regards,

    Jan

  • Hi Jan,

    Thank you for replying. Follow your guide, I find the DIsplay_open and change its first parameter from Display_Type_LCD into Display_Type_UART, and on simple peripheral it works! I can see its output through the terminal. By the way, I also modify the pre-defined symbols to delete the BOARD_DISPLAY_EXCLUDE_UART, maybe it helps too. 

    However I still got some problems on simple central. You said I can use the one in cc2650em folder instead, so I tried but failed when debugging. After that I downloaded so-called ble sdk from github of TI, and from which I imported the so-called simple central in cc2650lp folder. It can be flashed on the launchpad, but still failed to communicate through terminal even though I use all above methods.

    Here's the debugging error for cc2650em version.

    Here's the github page I find: github.com/.../ble_examples-2.2

    So now I wondering which version of simple central should I trust, and what should I do next to make simple central work well too.

    Best Regards,

    Shaw

  • Hi Shaw,

    Glad to hear changing the define worked! Its possible that you may need to fix the pin map when migrating from an em project to an lp project.

    Best Regards,

    Jan

  • Hi Jan,

    Could you tell me how can I fix it?:D

    Best Regards,

    Shaw

  • Hi Jan,

    I continue my work with that simple central of cc2650lp downloaded from github. Successfully it looks a little better. Now I could see some output from terminal, but I think "Discover ->" isstill  missing according to software-dl.ti.com/lprf/simplelink_cc2640r2_sdk/1.30.00.25/exports/examples/rtos/CC2640R2_LAUNCHXL/blestack/simple_central/README.html.

    Also, I can't control the launchpad using buttons. Reset worked, but BTN-1 and BTN-2 failed. Maybe you can give me some suggestion to handle this new issue.

    Best Regards,

    Shaw

  • Hi,

    Glad to hear you were able to resolve this. To clarify, the screenshot you have shared is from the CC2640R2 version of simple_central which is different to the CC2650 version. To use the buttons on the CC2650, by default it is expected to use the SmartRF board as mentioned below:

    To use the buttons on the LP-CC2650 board you must modify the code to use the right pins.

    Best Regards,

    Jan

  • Hi Jan,

    Thank you for replying. They are all working now, and I've learned a lot under your guidance. I can't wait to start my project!

    Best Regards,

    Shaw

  • Hi Shaw,

    No problem! I am glad to hear we were able to help resolve the issues and get you ready for development. If you have any further questions, then feel free to open a new thread and we will be more than happy to help.

    Best Regards,

    Jan