7rots51
Advanced Member level 4
Hi
when I make a project with below code with I@R @VR c0mpiler (cpu:at90s8515) and debug it with $py ,I see that the program exit the while loop !!! without any reason.if I change sprintf to printf ,there is no problem.
Is this my problem or is c0mpiler problem?
#include "stdio.h"
void main(void)
{
unsigned int kkk;
char bufff[6];
bufff[5] = 0;
while(1){
kkk = 1234;
sprintf (bufff,"%u", kkk);
}
}
when I make a project with below code with I@R @VR c0mpiler (cpu:at90s8515) and debug it with $py ,I see that the program exit the while loop !!! without any reason.if I change sprintf to printf ,there is no problem.
Is this my problem or is c0mpiler problem?
#include "stdio.h"
void main(void)
{
unsigned int kkk;
char bufff[6];
bufff[5] = 0;
while(1){
kkk = 1234;
sprintf (bufff,"%u", kkk);
}
}