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.

EK-LM4F232 UART problems Tiva vs Stellaris

Other Parts Discussed in Thread: EK-TM4C123GXL

Hi all.  I've been playing with an EK-LM4F232 evaluation board and TivaWare_C_Series-1.0 for a couple of days and have had pretty good success until I decided to write some debug out to the virtual COM port (UART0).  I tried a few of the examples and none of them would show any output on the Stellaris virtual serial port.  I then decided to just upload the pre-compiled binaries from the older Stellarisware software and immediately started seeing results.  The simplest example being the Hello project.  I then tried uploading the pre-compiled binary for the hello project that came with Tivaware and there was no output on the serial port.

I have tried recompiling the Tivaware hello project and have added a number of debug outputs such as checking the clock source with  RTClockSourceGet(UART0_BASE) and checking the reported baud rate with UARTConfigGetExpClk(UART0_BASE, 16000000, &baud, &fmt).  In both cases the result was what was expected.  I've even tried setting the UART clock source to the system clock and used SysCtlClickGet() as an argument to UART StdioConfig() and this produced an unexpected baud rate of 3072 when I read it back with  UARTConfigGetExpClk().  Attempting to slow the baud rate down to 9600 made no difference.  Sometimes I'll see garbage output on the port as one would expect with the wrong baud rate.  More often I see nothing at all.

Can anyone with an EK-LM4F232 confirm my findings or have any suggestions?  I honestly can't think of anything in my setup considering the binary right out of the download is failing.  Anyone have any ideas on how to make it work?  I'm going to be developing a USB device and it would be handy to be able to interact with a serial console for debugging and testing.

Thanks.

   -- MFallavol

  • I wrote a simple UART0 echo demo for the EK-LM4F120XL board (Stellaris Launchpad Kit) with a LX4F120H5QRFIGA3 chip on it. This was quite a while ago.

    Recently, I received a EK-TM4C123GXL board (Tiva Launchpad Kit) with a TM4C123GH6PMI chip on it. But my time limited IAR License expired. I use the LM Flasher to download my old bin file of my old UART0 echo demo without any change. It works fine too.

  • BTW here is the bin file. 0027.Echo.TXT But you need to change the file name from Echo.TXT to Echo.BIN. (They do not allow files with BIN extension, so I had to fake it).

    -- OCY