When something doesn't work, you need to run minicom on first and second port. This will set both ports to the same configuration. Here I've added small printing to see if configuration is equal.
global makefile for all misc. mini projects