The simple serial passthrough code is connecting both serials, USB_TX/RX and D1/D0, for host PC to control a device on D1/D0 directly. D2 is set as low active RESET pin of device.
Prebuilt firmwares for NuMaker-IoT-M487 and NuMaker-IoT-M467 are in firmware directory.