CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Mplab-X printf Error?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Ben van Well



Joined: 30 Aug 2012
Posts: 1

View user's profile Send private message

Mplab-X printf Error?
PostPosted: Thu Aug 30, 2012 4:56 am     Reply with quote

Hi,

I'm using CCS 4.128 with MplabX v1.30 and a PIC24FV32KA302.

If I use:
Code:
printf("1234");

everything works as expected, whereas if I use:
Code:
printf("1234;");

then the ouput is jumbled up (I used the semicolon to shows breaks but the same happens for other strings). Doing this within a loop shows that it is consistent. Output:
1234;23;1234123;13;1234123;13;1234123;13;1234123;13;1234123;13;1234123;13;1234123;13;1234123;13;1234123;13;1234123;13;1234123;13;1234123;13....

As always, I've stripped the code right back so it is little more than above. I can toggle a pin with the correct timing, and as mentioned can successfully send a limited string (4 characters or less).

Monitoring the transmit lines while running the loop I can clearly see two different strings being sent, so I'm sure this problem isn't related to the "string receive" side.

I didn't have this problem previously using Mplab 8.x with the same compiler (and almost identical hardware!).

Has anyone experienced this before? Any suggestions?
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group