Ben van Well
Joined: 30 Aug 2012 Posts: 1
|
Mplab-X printf Error? |
Posted: Thu Aug 30, 2012 4:56 am |
|
|
Hi,
I'm using CCS 4.128 with MplabX v1.30 and a PIC24FV32KA302.
If I use:
everything works as expected, whereas if I use:
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? |
|