kl25 flash crash with systick

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

kl25 flash crash with systick

776 Views
randolphwang
Contributor I

Hi everybody,

   I'm working with kl25 , C90TFS Flash driver ,
when the mcu start up , first I will start the systick, such as:

SysTick_Config(CLOCK_GetFreq(kCLOCK_CoreSysClk) / 1000U);

and then , I will init and earse the flash, the application crash, How to solve it ?

Labels (1)
0 Kudos
1 Reply

665 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Randolph,

    Flash operation can't be break by the interrupt, so before you launch the flash command, please disable the global interrupt, after the flash operation is finished, then enable the global interrupt again.

Wish it helps you!


Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos