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.

CC2640 UART echo issues to compile

Other Parts Discussed in Thread: CC2541, CC2640, CC2650

Hello.

I worked before on a CC2541, and i want porting my functionnality on a cc2640.

With a cc2541, i had a serialInterface who communicate in UART (state machine, parsing data) with an external MCU.

I wan't to develop the same comportement on my new chip.

For the moment, i work with the SensorTag (cc2650) and i follow this link :

http://processors.wiki.ti.com/index.php/CC2640_NPI_UART_ECHO_EXAMPLE

I follow all of instruction, but i get this error message when i compile :

Do you have a solution ?

Best regards

  • Hello Steeve,

    Yes, I do remember your CC2541 project! I hope that is going well.

    For the CC2640, can you list the *exact* steps you performed on the default project before encountering this error? Did you change any project / processor settings to the SimpleBLEPeripheral project?

    Best wishes
  • Hello JXS,

    Yes is fine, but now i try to porting my Serial Interface (like Serial Interface project cc2541), to new stack with CC2640.

    For the list, i have just follow the step from http://processors.wiki.ti.com/index.php/CC2640_NPI_UART_ECHO_EXAMPLE

    And i add 7 customs services on my project, and i call add command from each service into my simpleBLEPeripheral.c

    Best regards

  • Problem of compilation is solved. I started from a clean project and followed again steps. Now it's fine.
    But a problem persist. How can i test UART ?

    I have only DevPack and SensorTag.
    Concording with shematic, uart pin is DP4 & DP5.
    I need to connect a RS232 serial converter uart port on this pin's?
    And, do i need to modify the board.c ? If yes, what ?

    Thank's for your answers.

    Best regards

    Steeve
  • Steeve,

    I had a similar problem. The problem has to do with the pin assignments. I found this post: e2e.ti.com/.../1575973 and followed what it said.

    At the bottom of my Board.h file I added the following lines:

    /* Hack to use USB serial port on CC-DEVPACK-DEBUG */
    #define Board_EB_UART_TX IOID_29
    #define Board_EB_UART_RX IOID_28

    When you compile the project you will get two warnings about macro redefinition but they can be ignored.

    After making this change I was able to connect to the lower of the two com ports that get created with the CC-DEVPACK-DEBUG and got output and was able to enter input. At least in my case the higher of the two com ports always echo's anything typed into it. This led me to believe that things were working when they were not. When things are working you should get a message "Echoing characters:" on the com port.

    Also, if you try and connect to the RX and TX pins on the CC-DEVPACK-DEBUG they are labelled backwards so you need to connect TX on the CC-DEVPACK-DEBUG to TX on your UART and then RX to RX.

    Hope this helps,

    digitalhack
  • DigitalHack,

    I think i followed your instructions.

    On my Board.h i have this :

    // UART Board
    #define Board_UART_RX                       Board_EB_UART_RX
    #define Board_UART_TX                       Board_EB_UART_TX

    And at the bottom :

    /* Hack to use USB serial port on CC-DEVPACK-DEBUG */
    #define Board_EB_UART_TX IOID_29
    #define Board_EB_UART_RX IOID_28

    But problem still the same...

    If i have understand, i don't need an external serial port UART, because CC-DEVPACK-DEBUG include an UART Serial port.

    So i need to use a software like TeraTerm on COM23 ?

    If yes, i tried but when i send "test", i don't receive the echo.

    I think i missed something, but what ?

    Thank you.

    Best regards

    Steeve

  • DP4/DP5 (TX/RX) seems worked when the CC-DEVPACK-DEBUG is not connected to the sensortag.

    But when we connect the both, DP4/DP5 didn't work.

    If someone can tell me the step by step to configure the Board.c/.h.

    I don't have smartrf06, just SENSORTAG and CC-DEVPACK-DEBUG

  • It's worked now.
    Problem it's hardware from myself.
    Thank's you Digital Hack.