What the H**Ks with this print stuff?
Domanik
Posts: 233
GRRrrrrrr! Been chasing my tail in simpleIDE until I stumbled on this oddity. Apparently "printf" needs a "print" statement in order to load. The binary is 5k smaller without the "print". I like all caps in hex so I use printf when needed.
/*
Nothing prints until the "print" comment is un-commented and then
it kinda works, except "print" doesn't print uppercase HEX?
*/
#include "simpletools.h"
int main()
{
printf("Hello World %04X --- %04x\n", 250, 250);
//print("Hello World %04X --- %04x\n", 250, 250);
}
Dom..
/*
Nothing prints until the "print" comment is un-commented and then
it kinda works, except "print" doesn't print uppercase HEX?
*/
#include "simpletools.h"
int main()
{
printf("Hello World %04X --- %04x\n", 250, 250);
//print("Hello World %04X --- %04x\n", 250, 250);
}
Dom..
Comments
You're right. Adding a pause(300) makes it work. Thanks Dave.
PS: Fixed my original program too. Thanks +1
Also, when run from eeprom does't need a pause, so it's probably related to the IDE downloading/handshake/delay of releasing the terminal to the ap.