I am trying to use comtest.c and/or comtest_strings.c on an LPC2138 to send and receive bytes via UART0. I modified the Rx task to accept any string and receiving characters seems to work, at least when I type something in the hyperterminal the LED flashes. However if I check whether the received byte is eg. ‘A’ then toggle a LED, then it won’t light up. It means somehow it received something else than what was sent from my PC.
I think I have the same problem with the Tx task: although I set it to transmit the ‘ABC’ string it seems to transmit some garbage to my PC’s COM port: mostly the following bytes: 0xC3 and 0xBE but sometimes something else. I have 19200 baud rate, 8-N-1 configured on both my PC and in FreeRTOS.
The hardware clearly works, because when I download a demo firmware it nicely transmits strings and can even echo my typed characters back.
What do you think can cause such strange behaviour? I also have a higher priority task running: it periodically resets an external watchdog hardware. But I don’t think that would interfere as it runs only ever second.