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: Add Sharp96x96 LCD to ble5_longrange_central_cc2640r2lp_app CCS example program

Part Number: LAUNCHXL-CC2640R2

Hi,

    What are the steps to add Sharp96x96 LCD display to ble5_longrange_central_cc2640r2lp_app CCS example program. So far I have not been successful with my effort. Here are my steps below.

  1. Set Predefined Symbol BOARD_DISPLAY_USE_LCD=1
  2. Add files DisplaySharp.c, DisplaySharp.h, SharpGrLib.c, SharpGrLib.h and set Include Paths.
  3. Add Linker File Search Path '"${COM_TI_SIMPLELINK_CC2640R2_SDK_INSTALL_DIR}/source/ti/grlib/lib/grlib.aem3"

    After step 3 the red led does not turn on, so there is something wrong already.

- kel

  • Can you elaborate on what the device is doing? Is it crashing? Also, you probably don't need to include the .c files if they are already in the aem3 library. Do you get to Display_open? What is it's return code?
  • Hi,

    I tried the display example program and it works. At display example program they have these set at linker search paths.

    "${COM_TI_SIMPLELINK_CC2640R2_SDK_INSTALL_DIR}/source/ti/display/lib/display.aem3"
    "${COM_TI_SIMPLELINK_CC2640R2_SDK_INSTALL_DIR}/source/ti/mw/lcd/lib/lcd.aem3"
    "${COM_TI_SIMPLELINK_CC2640R2_SDK_INSTALL_DIR}/source/ti/grlib/lib/grlib.aem3"

    So I set the same paths at ble5_longrange_central_cc2640r2lp_app CCS example program and then set BOARD_DISPLAY_USE_LCD=1. I load the program to my CC2640R2 Launchpad and there is no output at LCD display.

    To debug step properly the ble5_longrange_central_cc2640r2lp_app CCS example program, I need to set the CCS optimization to "OFF". But, if I do that there will be linker out of memory errors.

    Can anyone help me with this? I need to demonstrate the BLE 5 long range example program at work.

    - kel
  • Hi,

    I tried the ble5_longrange_peripheral_cc2640r2lp_app CCS project no changes and output the menu to Tera Term. The right button does not do anything. I am not able to set PHY and PDU.

    - kel
  • In that demo, the longrange_central peforms a GATT write to the PHY characteristic to tell the peripheral to request to go into coded PHY mode. This should be automatically done for you when after the central connects. You can also use the throughput demo and also go into coded PHY mode.

    In regards to the memory errors, you may want to use file specific options to prevent optimization on just the files you want to debug. (See processors.wiki.ti.com/.../Projects_and_Build_Handbook_for_CCS
  • Hi Tom,

    The procedure to make the Sharp96x96 LCD work are below.

    Add these library paths.

    "${COM_TI_SIMPLELINK_CC2640R2_SDK_INSTALL_DIR}/source/ti/display/lib/display.aem3"
    "${COM_TI_SIMPLELINK_CC2640R2_SDK_INSTALL_DIR}/source/ti/mw/lcd/lib/lcd.aem3"
    "${COM_TI_SIMPLELINK_CC2640R2_SDK_INSTALL_DIR}/source/ti/grlib/lib/grlib.aem3"

    Set. BOARD_DISPLAY_USE_LCD=1

    The LCD works for Throughput Example Program. It does not work for Long Range Example Program. At the moment I do not have time to investigate further why the LCD does not work for Long Range Example Program. I will leave this post unanswered for now.

    - kel