an2295 sprintf

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

an2295 sprintf

911 次查看
isabelbenitez
Contributor II

From the bootloader example of the AN2295, I am trying to make my own bootloader. I have a display and I need to show the progress of the bootload while doing it. I want to use the "sprintf" function but whenever I write it in the code, the program is continuosly resettin. any idea? (my Kinetis is the Mk60)

0 项奖励
回复
1 回复

708 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Isabel:

printf(), sprintf() functions and the like consume a considerable time. If you have watchdog enabled this may be causing your MCU to reset. Do you have it enabled? If so, you need to make sure that refresh period is longer than the duration of the sprintf() function itself.

Hope this helps!


Regards!
Jorge Gonzalez

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

0 项奖励
回复