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)
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!
-----------------------------------------------------------------------------------------------------------------------