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.

Automatic startup without the need of a computer

Other Parts Discussed in Thread: TM4C123GH6PM

Hello,

I've got the TM4C123GH6PM and I'm struggling with it right now. I have written a program, which works really fine, if the usb cable is plugged into the computer. But I want to power the microcontroller with some batteries. For this purpose, I use an external switch to turn the uC on or off. My goal is that the software automatically starts running as soon as I power the uC. But nothing happens. I see that the power LED is on but the software should also drive some additional LEDs by using GPIO pins. And when plugging it into the computer and debugging the code, the external LEDs light up as expected.

When googling this problem I found that you need a certain startup.c file, which is currently missing in my project. Is there a possibility to get this startup.c file from somewhere?

Thanks!

  • Hello Kleh,

    You can import one of the existing TivaWare project and then use the startup.c file from the same while modifying the main C file your application code.

    Regards
    Amit
  • kleh dzueih said:
    that the software automatically starts running as soon as I power the uC. But nothing happens. I see that the power LED is on but the software should also drive some additional LEDs by using GPIO pins. And when plugging it into the computer and debugging the code, the external LEDs light up as expected.

     Hi I encountered a similar problem in the past, try if code start just if attached to debugger or also when attached to an USB port.

     In my case just an HUB was starting the code, powering without an USB never started. Try a powered USB HUB, disconnect HUB from pc, power it then plug in your Launch pad into one HUB port  and report here if it work.