- Wed Oct 14, 2009 12:35 pm
#83024
I'm trying to figure out how to convert integers to strings so I can send them over rs232.
Atm the moment I'm using this:
"avrdude: ERROR: address 0x0810 out of range at line 129 of Serial.hex"
And I have tried both:
LDFLAGS += -Wl,-u,vfprintf -lprintf_min
And
LDFLAGS += -Wl,-u,vfprintf -lprintf_flt
Is there some sort of include I need aswell or am I just doing it wrong?
Thanks
Atm the moment I'm using this:
Code: Select all
But if I try to make this I get:char b[5];
sprintf(b, "%d", i);
SendString(b,1);
"avrdude: ERROR: address 0x0810 out of range at line 129 of Serial.hex"
And I have tried both:
LDFLAGS += -Wl,-u,vfprintf -lprintf_min
And
LDFLAGS += -Wl,-u,vfprintf -lprintf_flt
Is there some sort of include I need aswell or am I just doing it wrong?
Thanks
[url=http://www.alexgeek.co.uk]Tech Blog[/url]