FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [September 2007 Threads] problems with UARTPosted by Pietro on September 21, 2007 Why if I try to do:
xSerialPutChar( xUART2, 'a', mainNO_BLOCK ); xSerialPutChar( xUART2, 'b', mainNO_BLOCK ); xSerialPutChar( xUART2, 'c', mainNO_BLOCK ); xSerialPutChar( xUART2, 'd', mainNO_BLOCK ); xSerialPutChar( xUART2, 'e', mainNO_BLOCK ); xSerialPutChar( xUART2, 'f', mainNO_BLOCK ); xSerialPutChar( xUART2, 'g', mainNO_BLOCK ); xSerialPutChar( xUART2, 'h', mainNO_BLOCK ); xSerialPutChar( xUART2, 'i', mainNO_BLOCK ); xSerialPutChar( xUART2, 'l', mainNO_BLOCK ); xSerialPutChar( xUART2, 'm', mainNO_BLOCK ); xSerialPutChar( xUART2, 'n', mainNO_BLOCK ); xSerialPutChar( xUART2, 'o', mainNO_BLOCK ); xSerialPutChar( xUART2, 'p', mainNO_BLOCK );
in a task running with other tasks, doesn't it work? (It may write on my terminal another char or the right sequence, but truncated or it may even crash... )
Why does
xSerialPutChar( xUART2, 'a', mainNO_BLOCK ); xSerialPutChar( xUART2, 'b', mainNO_BLOCK ); xSerialPutChar( xUART2, 'c', mainNO_BLOCK ); xSerialPutChar( xUART2, 'd', mainNO_BLOCK );
work?
And why if this task is the only one running, with all the xSerialPutChar, does this work well?
Thank you in advance,
Pietro
RE: problems with UARTPosted by sotd on September 21, 2007 Any clues as to which port you are using. Processor? Compiler? Did you write the code yourself, or is this in the download?
RE: problems with UARTPosted by Dave on September 21, 2007 Does it work if you use a block time. You are probably just not sending all the data.
Which port are you using?
RE: problems with UARTPosted by Pietro on September 21, 2007 I'm using PIC18F6527 with MPLAB 7.62, and I write my code. Can you give me any advices?
Thank you,
Pietro
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|