Program freezes in the user thread when using the printf function
Posted: Tue Sep 12, 2023 11:07 pm
Code: Select all
:
#include "KMotionDef.h"
void main()
{
for(;;)
{
printf("\nfgkjg;rgr;r'kgeroqwwn " ); //The content of the text is not important
Delay_sec (0.1);
if (!ReadBit(47)) SetBit(47); else ClearBit(47); // Led for control
}
}
After some time after disconnecting communication with Kmotion, the execution of this thread stops.
Sometimes the connection is not restored after connection. Flashing user memory becomes impossible until this thread is stopped.
As long as this thread is not forcibly stopped, it is impossible to flash user memory.