2020-03-28 10:43 AM
The example I'm trying to work with comes from: STM32Cube_FW_F4_V1.25.0\Projects\STM32F4-Discovery\Examples\UART\UART_TwoBoards_ComPolling
To enable in the compiler means the board is the transmitter and disable means the board is the receiver. The compiler line is fixed though so I don't see how to add the enable or disable switch. Please let me know how, if you can.
Thank you for helping.
Dan
Solved! Go to Solution.
2020-03-28 05:12 PM
Nevermind. I figured out the solution to my problem.
In main.c
To enable just leave line 52 as #define TRANSMITTER_BOARD
To disable comment line 52 out
Connect an RS232 rig to the receive board: Tx to Tx and Rx to Rx and use a terminal program to monitor the communication from receive board to transmit board.
2020-03-28 05:12 PM
Nevermind. I figured out the solution to my problem.
In main.c
To enable just leave line 52 as #define TRANSMITTER_BOARD
To disable comment line 52 out
Connect an RS232 rig to the receive board: Tx to Tx and Rx to Rx and use a terminal program to monitor the communication from receive board to transmit board.
2020-03-29 02:54 AM
Thumbs up.
Can you please select your post as Best so that this thread is marked as resolved. Thanks.
JW