How to add run-time initialization and power souce stabilization delay in software for LPC11E67?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to add run-time initialization and power souce stabilization delay in software for LPC11E67?

2,006 Views
dhruvkdesai
Contributor I

I am using LPC11E67 microcontroller for the project and using MCUXpresso IDE for software development. I want to clear memory and initialize content of global variables at the startup, I am not sure if that is already covered in the cr_startup file. If not then how to add that? Also how to add delay in startup code so that program starts running after power supply stabilized.  

Thanks for help!

Labels (1)
0 Kudos
Reply
3 Replies

1,908 Views
converse
Senior Contributor V

Startup code automatically initialised global variables and zeroes necessary data. It does NOT clear all memory.

If your power supply is not stable, suggest you change your circuit design to hold reset until it is stable.

0 Kudos
Reply

1,908 Views
dhruvkdesai
Contributor I

Thank you for the response!

Any suggestion on how to clear memory on startup and how to hold reset until power supply is stable?

Thanks in advance! 

0 Kudos
Reply

1,908 Views
converse
Senior Contributor V

To clear memory, just add a loop in ResetISR before anything else to zero memory - being careful to NOT overwrite the stack!

0 Kudos
Reply