Hi ,
I need an2295 serial bootloader linux utility to program and I am trying to compile but getting following error:
prog.c:1957:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
prog.c:1965:5: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
fprintf(stderr, "Can't erase block %d at address 0x%06X\n", block, er);
^
prog.c:1967:5: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
fprintf(stderr, "Can't erase block %d at address 0x%08X\n", block, er);
^
prog.c:1969:5: warning: format ‘%X’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
fprintf(stderr, "Can't erase block %d at address 0x%04X\n", block, er);
^
make: *** [prog.o] Error 1
In window it is working fine Can any one please assist me ?
Thanks,
Sunil