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.

CC254X UART1 Operation



Hello All,

I have been working at getting UART1 transmitting data to a serial port and have had varied success.  I began my UART endeavor with working on UART0 since this seems to be the default UART port based on the SmartRF05 1.8 development board (what I have the CC2541EM mounted on).  I was able to get a simple hello world running on UART0 without much trouble, so on I went to try and port my code to UART1.  All I did was change my register configurations from U0 to U1 and set HAL_UART_DMA=2 under the preprocessor defines.  After these changes my serial port displayed the following...

entBLE Cenr     a                          m                  l

   0x90D7EBB1E8A  øhellTexas Is t                                  r                                   u

You can see right before 'Texas' is part of my message "hello" except the "o" was overwritten/removed.  Right away I noticed the MAC address and realized there was only one place that was printed, on the LCD of the dev board.  Commenting out lines of LCD_WRITE_STRING seem to do the trick and I eliminated most of the TI information that was being printed out.  My messages still aren't being displayed perfectly on the serial terminal and I think it's because I haven't disabled the SPI on my UART TX pin but I'm having trouble finding where this is.  Has anyone gotten UART 1 to work?  I'm basing this all off of the SimpleBLECentral code.  I am using an FTDI cable to connect directly from P18(debug header of the smartRF board) to the PC so I am directly connecting to the 2540 UARTs.  Thanks for your help! -Chris