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!
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.
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!
To clear memory, just add a loop in ResetISR before anything else to zero memory - being careful to NOT overwrite the stack!