The extension connector is not managed by the CircleOS.
Pin affectation are depending on the Primer version, and the Target Board CPU model.
Normally, Tx is connected to the Tx output of a CPU's USART.
Take a look at the schematics of your Primer to determine the peripheral to use, and then you will be able to implement the ST STM32 Peripheral Library functions to control it.