Hi everyone!
I am trying to send some HEX data to a printer module using STM32F4 Discovery board, UART. in cubeMX I defined some pins as TX, RX and CK. when I generate the code, I can not see any sign of these pin!!! why?
also when I use function HAL_UART_Transmit(), does it send data to TX pin?
thanks everyone!
The function feeds the data to the USART transmit register. If the clocks on the USART and the pin are enabled, and the correct Alternate Function (AF) mapping is selected, then the data will be shifted out the USARTx_TX pin you have associated with the peripheral.
Everything in the chain needs to have been configured/set correctly, otherwise none of it will work as expected.
Describing what you have done from a top level narrative is not nearly as useful as seeing the code that has set up the plumbing, and if that matches with your intent/expectations.