Jump to content
43oh

2.5 sec delay after power up


Recommended Posts

I have a MSP430G2553 on a breadboard, loaded with a very simple Energia program. It is running at 1MHz with the internal oscillator. There is nothing attached to the reset pin. The program runs properly. But there is a 2.5 sec delay between the 3.3 volt supply coming up and the execution of the first line of the program (simply raising an output pin). That seems like a very long time. Is this normal? Is it due to hardware sequences on the chip or is it caused by Energia?

Link to post
Share on other sites

Note that all global variables and objects, as well as a tiny bootstrap are run before the first line in your setup() or main() routine. So if you have a TCP/IP object in global space that tries to get an IP over DHCP, you might end up with several seconds of delay before the MCU enters the setup() or main().

Link to post
Share on other sites

I use a standard 78L3.3 regulator for the supply. No large capacitor. It comes up to full voltage in less than 1msec.

 

It is my understanding that the reset pin has an internal pullup. Anyhow, when I add an external resistor and capacitor as recommended, the results are exactly the same.

 

For this test, I reduced my program to absolute minimum, just blinking one LED. No connections to the outside world.

 

The 2.5 sec delay is enough for many thousands of instructions. Does the Energia core really have that much setup work to do?

I would expect a few msecs at most.

 

Does anyone else have a measurement of their power up delay in similar circumstances?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...