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.

LAUNCHXL-CC2640R2: LAUNCHXL-CC2640R2

Part Number: LAUNCHXL-CC2640R2
Other Parts Discussed in Thread: BQ76PL455A-Q1, CC2640R2F

Hello,

I have the same question as the one in here (https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1020426/launchxl-cc2640r2-uart-dio2-and-dio3/3772397#3772397), but the link provided as a solution redirects to the same question. If any one could help me with an answer I will be grateful.

  • Hi,

    Could you please verify if one of the "similar topics" in the threads would help?

    You may also want to review https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/653038/rtos-launchxl-cc2640r2-i2c-pin-dio2-and-dio3

    I hope this will help,

    Best regards,

  • Thank you Clément for the quick reply. I have checked out the topics you suggested and the link. But my case is bit different.

    I have bq76PL455A-Q1 and 2 MCUs of cc2640r2f. I want to connect one MCU to bq76PL455A-Q1 by using UART protocol and read data from the bq76PL455A-Q1, and then send that data to the other cc22640r2 MCU by BLE. Is this project feasible per se? If so, any resources I can start with for now as a guidance? 

    P.S. I am newbie to this kind of microcontrollers but I have already reviewed the getting with started part and some of the vital labs. But still it seems I couldn't get all the information that was necessary for my project, so if you could help me with some resources I will appreciate it.

  • Hi,

    The project you are describing is definitely doable :)

    I would recommend to simplify the problem as following:

    1- implement the UART read. To do so, try to leverage the UART examples available in the SDK

    2- implement a Bluetooth connection. To do so, leverage the simple_peripheral and simple_central examples available in the SDK. For your case, I recommend to use the BLEStack - not BLE5Stack unless certain Bluetooth 5 features are mandatory, however it could then lead to flash shortage issues.
    You can also review the labs dedicated to the topics on https://dev.ti.com/tirex/

    3- "Merge" your UART and BLE projects. In practice, I recommend to add support for the UART part within the BLE examples. I guess a few challenges will then arise (conflicts between the UART used for the display and the UART used for the sensors, communication between the task handling the UART and the task handling BLE).

    I hope this will help,

    Best regards,

  • Hi Clément,

    Thank you for answering most of my question, that will definitely help.

    I am already in step 3 where I am trying to merge the UART and BLE projects. It seems that I am facing the conflicts between the UARTs. If you could help me with some solution would be great. Also, the main data I am trying to read from the bq76PL455A-Q1 is voltage, Do you think Sensor Controller projects would help me accomplish that job?

    Thank you again for your help.

    Best Regards.

  • Hi,

    It seems that I am facing the conflicts between the UARTs.

    To me the easiest approach would then be to disable the display module used by the BLE example.

    Alternatively, you could emulate a UART module using the Sensor Controller to interface with the sensors.

    Also, the main data I am trying to read from the bq76PL455A-Q1 is voltage, Do you think Sensor Controller projects would help me accomplish that job?

    I am not sure if you are asking if the Sensor Controller could handle ADC reads or UART. It can do both :)

    Here again, I would recommend to first implement the Sensor Controller with UART then "merge" with the BLE example.

    Please make sure to open dedicated thread if you have questions not totally related to the initial discussion. Thanks!

    Best regards,