sprint function

paulgcoleman wrote on Friday, May 11, 2012:

I thought I read somewhere that each port has a reduced version of the sprintf() function but I don’t know where it is and how do I use the replacement instead of the standard library one? I’m using the Atmel AVR32 port. Can somebody point me in the right direction please?

Thanks, Paul.

davedoors wrote on Friday, May 11, 2012:

There is a third party file called printf-stdarg.c included in lots of demos but not all. Search the FreeRTOS\Demo directory for that file name and you will find it. Careful that the snprintf() implementation it contains does not get used though because it is not implemented and is included so it can be linked.

paulgcoleman wrote on Friday, May 11, 2012:

Thanks for the reply.

It doesn’t appear to exist for my port so I’ll have to look at using one from another port. Or just create a very large stack for the task which uses it and use the GCC library version instead.

Thanks, Paul.

davedoors wrote on Friday, May 11, 2012:

The files are not port specific, they are all the same.