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.

CCS/CC2640R2F: CC2640 libraries

Part Number: CC2640R2F

Tool/software: Code Composer Studio

Hi,

I designed a custom circuit around the CC2640R2F BLE chip, including USB Interface and everything. I downloaded the Smart RF Flash Programmer 2, which detects my pcb and even connects to the BLE chip. I also compiled and uploaded a couple of example projects from the CCS Resource explorer, which also worked. Out of all these accomplishments I guess my circuit works properly.

Now my Problem:

One of the examples I tried was the Uart_echo example, because I thought, that way I could easily check via Putty if the code actually works or not. Unfortunately it's not working... For some reason the GPIO's which are set in the example, are set on my pcb too, but some part of the Uart connection is not working.

For some reason I often encounter problems with the libraries (not only with the Uart_echo but also with code I wrote myself), and I guess it is because I am not using the Launchpad for which all of the libraries included in the Simplelink SDK are originally made for.

So my question is, if there are libraries that don't require the Launchpad, or if I have to get back to setting registers. Or could I maybe use some sort of standard ARM Cortex libraries?

Any help would be useful, since I'm quite stuck at the moment...

Thanks in advance!

  • Hello Sebastian,

    to build uartecho_CC2640R2_LAUNCHXL_nortos_ccs example you need the following libraries:
    ti/drivers/lib/drivers_cc26x0r2.aem3
    lib/nortos_cc26x0r2.aem3
    ti/devices/cc26x0r2/driverlib/bin/ccs/driverlib.lib
    and libc.a .

    The drivers_cc26x0r2.aem3 library includes the following objects needed by uartecho: 

    GPIO_init ./uartecho.obj
    GPIO_setConfig ./uartecho.obj
    GPIO_write ./uartecho.obj
    PIN_close ./CC2640R2_LAUNCHXL_fxns.obj
    PIN_init ./CC2640R2_LAUNCHXL.obj
    PIN_open ./CC2640R2_LAUNCHXL_fxns.obj
    PIN_setOutputValue ./CC2640R2_LAUNCHXL_fxns.obj
    Power_init ./CC2640R2_LAUNCHXL.obj
    UART_Params_init ./uartecho.obj
    UART_init ./uartecho.obj
    UART_open ./uartecho.obj
    UART_read ./uartecho.obj
    UART_write ./uartecho.obj

    Sebastian Ludwig32 said:
    So my question is, if there are libraries that don't require the Launchpad, or if I have to get back to setting registers. Or could I maybe use some sort of standard ARM Cortex libraries?

    Quick look into UART_* functions show that they are transparent to h/w pins. etc. 
    Assuming your hardware is working properly, there are some h/w incompatibilities between your custom board and TI's LP
    and these differences are not properly redefined. 

  • Hi Tomasz,

    Thanks a lot for your help!

    But two questions remain:

    Where do i know from, which libraries I have to include? Because I just keep getting these "unresolved symbols remain" errors, and maybe sometimes after a lot of investigation I find stuff to include.... but I guess thats not the proper way to do this? (hopefully) I mean I know I have to include some kind of UART library to work with UART but I have no Idea where I should know from that the driver_cc26x0r2.aem3 needs to be include for example.

    Could you think of any problem I could have with my hardware? Because since the UART connection works with the Flash Programmer 2 tool, it can't be completely wrong... some decleration I'am missing? I also read about people who created their own Board.h file for their specific custom board. Do you know where I could get information about this?

    Thanks for your help in advance,

    Sebastian

  • Hi Sebastian, 

    Sebastian Ludwig32 said:
    Where do i know from, which libraries I have to include?


    You need to learn libraries.
    You may start here: 
    http://dev.ti.com/tirex/explore/node?node=ADMz2LGBMlg4I83PRXXFWw__krol.2c__LATEST

    Sebastian Ludwig32 said:
    Because I just keep getting these "unresolved symbols remain" errors, and maybe sometimes after a lot of investigation I find stuff to include....


    Try to build examples interesting for you and trace the code. 

    Sebastian Ludwig32 said:
    Could you think of any problem I could have with my hardware?


    Could happen. You should check it. 

    Sebastian Ludwig32 said:
    I also read about people who created their own Board.h file for their specific custom board. Do you know where I could get information about this?


    http://dev.ti.com/tirex/content/simplelink_cc26x2_sdk_2_20_00_36/docs/thread/html/thread/custom-hardware.html
    http://processors.wiki.ti.com/index.php/Migrating_a_TI-RTOS_project_to_a_custom_development_board