an2295 sprintf

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

an2295 sprintf

923件の閲覧回数
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 返信

720件の閲覧回数
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 件の賞賛
返信