Re: [Sdcc-user] PIC 18F2550 vs. printf/sprintf

2006-08-29 Thread Easy B
: > On Mon, Aug 28, 2006 at 07:32:47PM +0200, Easy B wrote: >>> volatile int i; >>> i=7; >>> stdout=STREAM_USER; >>> printf("%s", i); >> >> Wont work. But "printf("%c", i); " results the character with the >>

Re: [Sdcc-user] PIC 18F2550 vs. printf/sprintf

2006-08-28 Thread Easy B
Hivolatile int i;i=7;stdout=STREAM_USER;printf("%s", i);Wont work. But "printf("%c", i); "  results the character with the ASCII code 7. Strings and characters aren't the problem though. As soon as I use something other than "%c/s" my program hangs. It doesn't make a difference if I use int, char o

Re: [Sdcc-user] PIC 18F2550 vs. printf/sprintf (Raphael Neider)

2006-08-28 Thread easy-b
Hi Thanx for the reply. I will try your suggestions as soon as I get home. As I said, printing strings works fine. So the setup should be fine too. I've set sdout to use the UART. Maybe I should be more careful with types and stuff. With gcc and my computer this works fine. But of course there i

[Sdcc-user] PIC 18F2550 vs. printf/sprintf

2006-08-26 Thread Easy B
Hello For the last few days I've been playing around with the sdcc pic16 port and my 18f2550. Actually I'm pretty happy with the result up until now. While trying to use the libraries, stdio to be specific, the formating of printf or sprintf doesn't seem to work right. Is this possible, ex