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.

LM3S6965: trouble with UART

Other Parts Discussed in Thread: LM3S6965

Hi,

I am trying to Sort an array of strings in Alphabetical order. I was able to write the code and got it working. How do I know this ? Well, I replaced my main.c to the uart_echo.c in example code 'UART_ECHO and it worked as shown in the attached snapshot.

ISSUE #1

Thing is I used the already available Keil project template inside UART_ECHO example folder. And the code worked. But my problem is when I create a new project and set it up just like the project template mentioned above, it doesnt work properly. I mean it prints the first line, where it asks for user input. Then when I type something, it doesn't accept it, i get no echo. (and yes I have echo functionality in my code). And when i said i set it up the same way, i meant I did the following steps:
1. added same files

2. made sure that settings in  'options for target' menu are exactly same.

ISSUE #2

Also, I have another issue, where my UART serial window #1 does not respond to the code at all. I mean, nothing gets printed as it should on a uart terminal upon running the code. I tried with the working code. Is there an extra step I'm missing out on. I also noticed that I dont get the UART set up menu or something of that sort in which we can change the baud rate and all. I saw people using that in some tutorial videos. But when i click the same button(peripherals->UART->UART0), i get only the register states of UART0.


There is so less resource on the internet for LM3S6965 with keil. So please help me.

Thanks in advance!

  • Hi Vivek,

    I think it would be wise to just use the working modified uart_echo.

    Regarding your new Keil project problem, debug step the code to see what part of the code is causing the problem. Also compare the startup file of uart_echo to your new Keil project, see what may be different.

    - kel
  • Thanks for the reply Kel.

    First of all I am using same startup file for both. So that shouldn't be the problem. Like i said all the files in the project are exactly the same. The only thing that could be the problem is some setting. And i tried to check that. I cross verified that both have exactly same settings in the menu - 'options for target'.

    So that brings me down to one possibility. There is some UART set up window that I cant seem to find in uvision 5. In this tutorial   the user after pressing debug, comes across a UART config window which is what i'm looking for. Im attaching below a pic of the snapshot of the tutorial where I saw it.

    Vivek

  • Kel,


    Like u said my issue was with the STARTUP FILE. I had included startup files from two different examples. hence the second one didnot declare the uart interrupt handler. Thanks to u. Now I got both the projects workin.


    Only thing that still haunts me is Why the inbuilt UART terminal in Keil is not working for me. When a hyper terminal would print out the intro message, the inbuilt serial window in KEIL does nothing upon entering debuggin mode and running the code.

    Vivek

  • Hi Vivek,

    I have not done that before. But, doing a search in the internet, there is a mention how to do that at the Keil website.

    - kel