Code: Select all
par
{
on tile[0]:
{
par {
input_gpio_1bit_with_events(i_gpio_rx[0], rx_fw);
uart_rx(uif[0], null, 16, 115200, UART_PARITY_NONE, 8, 1, i_gpio_rx[0]);
uart_tx_buffered(utif[0], null, 50, 115200, UART_PARITY_NONE, 8, 1, i_gpio_tx_world[0]);
output_gpio(i_gpio_tx_world, 1, tx_ack, null);
}
on tile[1]:
{
par{
{
while(1){
unsigned char ch = uif[0].wait_for_data_and_read();
utif[0].write(ch);
}
}
}
}
}
When I send something on the rx_fw pin, I expect the same reply on tx_ack. I am testing with a ttl-usb converter and a serial terminal.
I find that when the hex string is short (<3 bytes), the reply is identical. Anything longer and the reply gets garbled after 3 bytes.
Any clues?