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?

1,998件の閲覧回数
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,900件の閲覧回数
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,900件の閲覧回数
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,900件の閲覧回数
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 件の賞賛
返信