an2295 sprintf

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

an2295 sprintf

914 Views
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 Kudos
Reply
1 Reply

711 Views
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 Kudos
Reply