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.

Differences in UART between Stellaris and Tiva

I have now moved my project from the old Stellaris platform to the new Tiva. My question is if there are any documents for the differences for the use of UART.

My project hangs when I use the following command line:

memset(g_ucUARTBuffer, 0xFF, UART_IF_BUFFER);

My entire project work perfect as long as I don´t activate this line anywhere in the program in relation to the UART.

Has there been any changes or a new function to achieve the same goal? 

  • Hello Martin

    To my understanding, UART has not changed between Stellaris and TIVA for most of the functions. Did you try a simple UARTCharPut?

    Regards

    Amit

  • Hi,

    First it would be better to specify what Tiva version do you use, since there are quite a few, and the last one has many differences (even between Tiva releases). You can find out a document (on micro controller's  page/Application notes) relating to these, also on Tiva/documents are a few important ones: peripheral driver library descriptions, release notes...

    Also, the most important - you may read/inspect the code since it is open and available - make a habit in reading this first, understanding the comments above each function.

    Check also the documentation of memset function...

    Petrei

  • Hi Martin,

         When your project hangs, does it go to any Faults?

         I believe memset uses heap memory, did you increase it's size?

    - kel

  • Markel Robregado said:
    ...uses heap memory, did you increase it's size?

    But - as poster initially states this worked very well under StellarisWare - would the default heap have been deliberately altered (shrunk) w/rebrand?  (methinks not...)

  • It would be exceedingly unusual for memset to use heap.  You would really have to make an effort to make it do so.

    Robert

  • Martin Andersson said:

    My project hangs when I use the following command line:

    memset(g_ucUARTBuffer, 0xFF, UART_IF_BUFFER);

    So what are the definitions of g_ucUARTBuffer and UART_IF_BUFFER?

    Robert