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.

UART not being enabled? DM648

Hey all-

 

I am trying to build in some uart support for my program, so I worked in the psp_bios_uart_st_sample example code.  Well, after recompiling the drivers and setting up the device in the DSP/BIOS the code compiles and runs without error, but it doesn't seem to be transmitting.  Probing the board during an infinite loop to the kprintf call reveals that the transmit line just sits at 3V out of the DM648.

Any thoughts on this issue would be greatly appreciated... Perhaps I may be overlooking a simple item that needs to be set or enabled?

 

Thanks!

Jason

  • Straight from the Technical Reference Manual:

    The UART and SPI EEPROM share the same DSP signals. DIP switch SW3-6 is used to enable/disable the UART and SPI, and also controls the initial setting of this function. The mux used to control the UART/SPI functions can also be controlled through software with a command to the MSP430 microcontroller. The UART is directly connected to an RS232 transceiver, but only TX, RX CTS, and RTS are used. The RS2332 is available on a DB9 connector.
    Have you made sure that the UART is actually enabled?

  • Well, SW3-6 is set to high, so I assume so.

  • I rebuilt the project and managed to get it to run and output data. I did not modify the example code at all. Here are some thoughts:

    • Make sure you include the DM648 GEL file. If you fail to do so the device will not be set up properly (without the GEL I received a bunch of junk characters over the UART).
    • The default sample does not even use the uart_kprintf.c file - do you require these functions or are you ok with using the GIO_submit calls in psp_bios_uart_sample_read_write.c?
    • Try running the attached .out file (built from DVSDK 1.11) and see if you receive any output. For reference my switch values are: SW2 = 0010101000  SW3 = 1111010000  SW4 = 0000
    • This would have nothing to do with the fact that you don't see the RS232 signals changing, but ensure that your terminal is configured for 115200 8n1 communication.
    dm648_evm_uart_st_sample.zip
  • GEL included already

    My switches match yours except for SW2-3, my setup didn't like that

    My teraterm settings match yours.

     

    It now kind of works, I'll play with it a bit more, but thanks for the help!  Just for my reference though, are you able to use kprintf?

  • Well I only played with it for a moment and I was not able to get it to work; however, I have not had a chance to really walk through that function to fully understand its purpose.

  • Hi,

    Sorry by the question, but I have the Lyrtech dm648 and I didn't found the gel file.

    Please, could you tell me where to find it?

     

    Thanks in advance.

     

    Shmuel.

  • you can find the files you need in the CD from Lyrtech that comes with the evm. Install the software and find it at:

    ...\Lyrtech\EVMDM648\gel

  • Hi,

    I'm sorry but I installed all the Discs that I received with the board and the directory that I have is:

    C:\dvsdk_1_10_00_14_DM648 and inside it I don't have any directory call Lyrtech\EVMDM648\gel.

     

    The only gel file that I found is in the directory C:\dvsdk_1_10_00_14_DM648\xdc_2_95_02\packages\ti\platforms\evmDM6446arm\

    and the file is called

    "DaVinciEVM_arm_bios.gel"

    I tried to use it but I didn't succeeded.

    Thanks for your time.

     

  • The board comes with several CDs,

    One of them says "Lyrtech" on the cover and contains the GEL file.

    If you can not find it, please e-mail Lyrtech:

    http://www.lyrtech.com/index.php?act=support