cancel
Showing results for 
Search instead for 
Did you mean: 

In the STM32F4 example, it says I have to enable or disable TRANSMITTER_BOARD, but I don't know where or how to do that.

DBenn.1311
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
DBenn.1311
Associate II

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.

View solution in original post

2 REPLIES 2
DBenn.1311
Associate II

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.

Thumbs up.

Can you please select your post as Best so that this thread is marked as resolved. Thanks.

JW