Search found 2 matches

by zwlesko
Wed 15. May 2024, 08:27
Forum: PCAN-RS-232
Topic: <stdio.h>, snprintf() not implemented?
Replies: 2
Views: 2461

Re: <stdio.h>, snprintf() not implemented?

The problem was in my Makefile and pcan_rs_232.ld file.

I noticed snprintf() was used in some of the example projects which worked fine when I tried them.

Because I was unlucky enough to have started my project by duplicating the CAN_ECHO project, and had added in the .h and .c files as I needed ...
by zwlesko
Wed 15. May 2024, 00:21
Forum: PCAN-RS-232
Topic: <stdio.h>, snprintf() not implemented?
Replies: 2
Views: 2461

<stdio.h>, snprintf() not implemented?

Hi,

I'm attempting to convert a floating point value as a string in order to send it over RS-232 ASCII serial.

Naturally, I tried using snprintf() and sprintf() from stdio.h, but it seems to make the PEAK RS-232 device hang as soon as either function is called.

As a sanity check I compiled the ...