1
\$\begingroup\$

I am working on designing a pcb that will contain a TI TM4C1231D5PZ microcontroller. I have only ever used a launchpad before for coding, so I do not know how to get my program code onto a microcontroller that is going to be on a pcb. I have looked at multiple resources, including the datasheet, and I can't find a circuit or even an understandable explanation of how to put the program code onto the microcontroller. I believe that I have all of the software complete and working, but I just need to get it on to the microcontroller. How is this process accomplished? Are there any helpful resources that explain this process?

\$\endgroup\$
2
  • \$\begingroup\$ There are many ways. A common one would be to use the JTAG interface. \$\endgroup\$
    – Tyler
    Mar 30 at 18:15
  • \$\begingroup\$ It's been a while for me on the TI TMS MCUs, but I believe they are programmed in-circuit via the JTAG interface as @Tyler mentioned. In fact the needed lines are brought to pins on the Launchpad which you can connect to a MCU in-circuit and do programming for prototypes and small production. For large scale production the distributor can often program them for you. \$\endgroup\$
    – jwh20
    Mar 30 at 18:24

1 Answer 1

3
\$\begingroup\$

It's always a good idea to add a JTAG interface for in-circuit debugging.

There are various debug probes you can choose from. The XDS100v2 is fairly cheap, if you can get a hold on one (TI doesn't distribute this anymore).
Another good option is the XDS110 (PDF / Product Page).
You can even use the LaunchPad as debug probe. See SPMA075 (referenced below), chapter 4.6.

And on the PCB you have to add a JTAG header (e.g. ARM 10-pin header): enter image description here

For more info, check the Application Report SPMA075: Using TM4C12x Devices Over JTAG Interface.


For production, where you only need to program the TM4C, you can use the integrated Boot Loader (ROM).

The TM4C1231D5PZ supports UART0, SSI0, I2C0 and USB. Check the Datasheet chapter 8.2.2.1 Boot Loader Overview.
Also check the TivaWare Boot Loader User's Guide.

As PC tools you can either use LM Flash Programmer or Uniflash.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.