sprintf crash

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

sprintf crash

984 次查看
z3
Contributor II

Everytime after writing to flash some configuration data the next sprintf(..) call crashes. Sprintf does not crash if no flash writing before. The CPU is KL25 with 16K ram and 128K flash. Stack is set at 0x400.

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

832 次查看
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Qing Gu,

    What the phenomena after your program crash? Will it enter in the default_isr?

  Now, anther point need to clarify, before you do the flash operation, you need to disable the global interrupt at first. After your flash operation is finished, you can enable your global interrupt again!

  Please check this point at first.

If you still have question, please contact with me!


Have a great day,
Jingjing

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

0 项奖励
回复