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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

2,050 次查看
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!

标签 (1)
0 项奖励
回复
3 回复数

1,952 次查看
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 项奖励
回复

1,952 次查看
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 项奖励
回复

1,952 次查看
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 项奖励
回复