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.

TM4C123GH6PM: Doubts about programming a standalone microcontroller.

Part Number: TM4C123GH6PM

Hi everyone. I'm a very begining student with the ARM-based microcontrollers, so one, for a developement of a project I chose the TM4C123GH6PM. I have a Stellaris LM4F120 LaunchPad EK, and I pretend to use it like a programmer for the Tiva. But I don't know if it's possible to use one to program the other one. And, if I should have to write the code using the Stellarisware or the Tivaware. Other point that I have doubt is about the ADC pins, if they support inputs with 3.3V or 5V. Any suggestion will be very important. Thank you.

  • Bom dia Gabriel,
    I didn't understand your post quite well. What do you mean by "...I chose the TM4C123x"? Did you buy one? Did you buy a launchpad with one?
    While it is not impossible to learn with the old LM4 Stellaris, it is a bit of a waste of time, for it is no longer manufactured or supported. Can you order a TM4C123XL launchpad from TI? It will be a low cost platform for your studies and there is a lot you can do with that.
    To start "for free", you will need to install Code Composer and Tivaware. The TivaWare Driverlib user guide has a lot of "text" on how to use most of the peripherals of the TM4C family.
    If you want to spend a few extra bucks, get the TM4C129 launchpad, and you can later have fun with ethernet as well (or get one of each and make them talk to eachother).
    As for the ADC pins, TM4C123x are 5V tolerant (129x's are not). But it does not mean you can measure a 4.2V voltage, for example - you can only measure from 0V (GND level) to your VDA_REF level (3V3 on simpler implementations); anything above that will show as "maximum level".
    Saudações
    Bruno
  • Bruno Saraiva said:
    If you want to spend a few extra bucks, get the TM4C129 launchpad,...

    The mentioned "LM4C Launchpad" stems from the "transition time" i.e. a TI product following the "old" LuminaryMicro device naming conventions. It is kind of a "Beta phase" Launchpad, and I have a few of them sitting on my shelf as well. Most hardware functionality should be the same or similar to the "new" TM4C launchpad. However, I'm not up to date with fixes an improvements.

    Instructions on how to such an LM4C Launchpad as "standalone ICDI" to debug external MCU's should be found in the User's Manual. But that would most probably involve a firmware update to support newer MCUs. Not sure if this is possible/supported. Perhaps Amit can tell us ...

  • Ola Gabriel,

    A good start point is this online course: UTAustinX: UT.6.10x Embedded Systems - Shape The World: Microcontroller Input/output

    Those online courses are also good:

    www.udemy.com/.../overview

    www.udemy.com/.../overview


    Ti provides an API (a set of auxiliar programming libraries) named tivaware, it helps to speed up the programming and interfacing.

    This beggining is a little bit hard, but please, let me know how I can help you.
  • Hello Gabreil,

    Yes, it is possible to use one as a programmer for another TM4C device. Please see the following application note.

    www.ti.com/.../spma075.pdf
  • Would that be true for the old LM4C Launchpads as well, i.e. could I use them to flash/debug newer devices (TM4C, MSP432) ?

  • Hello f.m.

    The LM4F launchpads should work for only TM4C devices.
  • As a matter of fact, I received a reply on a similar but unrelated subject this morning, which got me confused... Maybe I should take this opportunity to get some "deeper" enlightening from Amit!

    Fredrik K said:
    As far as I can tell ICDI is a proprietary (non-JTAG) solution that only is supported on TM4C.


    So... we connect the ICDI "Output" of a TM4C129XL Launchpad into a JTAG "Input" of a TM4Cx target, but we are actually not using JTAG?
  • Hello Bruno

    Fredrik K statement is incorrect. The ICDI is proprietary for sure, but it is a JTAG solution. The drivers that are written for the ICDI recognize TM4C devices only.
  • Amit, you saying that the old one can program the new one, for me is very interesting. Because, to get a new Launchpad is a bit of expensive to get as soon as possible.
    And about the link, thank you.
  • About the help: Thank you so much.
    And now some points for you: one friend has lended his LM4F120 to help me with the understanding of microcontrollers. When I searched to buy one Stellaris, I noticed the chancge for the TM4C, and so one, I think to use is as the microcontroller of the project (now I think it's been explained).
    And about the hints of the software, I already has installed them, not yet the Tivaware.
    And the inputs of the ADC, do you think that I can change the limit of input? Like, to change maybe a reference pin to support the 5V. This is a crazy ideia, however, to use it with the 3.3V is not so bad.
  • Gabriel, boa noite.

    Please, don't apply more than 3.3V in your ADC ports. You will damage your friends board. If you want do it, use a voltage divisor, with 2 resistors, but never ever apply 5V DC in your uC ADC port.
    You can check at the datasheet for more details about it.
  • Ok Thiago, boa noite.

    Thank you so much about the information of the input voltage, and I think that the output is with the same, only 3.3V.

    Gabriel Cássio M. Freitas
  • You can find more information here:

    www.ti.com/.../Ek-LM4F120XL

    If you don't have any experience with TI cortex M microcontrollers, I highly recomend you take the Edx online course.

    happy coding!
  • Hello Gabriel,

    The Application Note should help you get started quickly.
  • Amit Ashara said:
    The LM4F launchpads should work for only TM4C devices.

    Not to hate me - but those LX4F LPads should work w/BOTH TM4C and (other) LX4F chips/boards, as well...

    Note: there never was an LM4F released - all parts were (only) marked as LX4F.   (firm/I still have several hundred - it was claimed that some issue w/LX4F's "Reset" occurred - yet our devices worked to our (and clients') satisfaction...)

  • Hello cb1

    For the TM4C129x device it may require a firmware ugrade, but have never tried the same with a TM4C129x or seen the behavior of the LX4F with the firmware upgrade.