After they are all configured, they can be debugged, sent by PC and received by MCU. Single-chip microcomputer can send and PC can receive.
In addition, pay special attention to electrical isolation, isolation, isolation, and say the key things three times.
If the power supply of your single-chip microcomputer has been isolated, it is simple, otherwise you should use isolated data lines to communicate between the upper computer and the lower computer.
Good luck.