pietro77 wrote on Friday, 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