I am trying to make an application for MOD1253 coldfire (microprocessor)using netburner dev c++ 1.2 IDE for my development. I need to make the application without using RTOS below is the code which is giving me weired error.
Code:
void method(){
My_writechar(0,c);
static int pinn = 4;
int pinn1 = 4;
char ch=(char)(pinn+'0'); // convert to char
char ch1=(char)(pinn1+'0');
//method which prints char, without using standar IO
My_writechar(0,ch); // prints l
My_writechar(0,ch1); // prints 4
}
this method works fine with RTOS, but doest not work without it.
it should print 4 .. but it prints something weired. I tested the same code with Visual Studio, and it works fine if I use std::cout<<ch;
I will really appreciate your quick response.
Karephul