Hi there,
I would only add this: Sometimes the GPIO pin number needs to be used instead of the logical pin(D7) try that with the Xiao side and What BSP are you using? some are buggy on Serial port pins support.
HTH
GL PJ
@cgwaltney recommends are spot on as well any pin should work.