Skip to main content
DBenn.1311
Associate II
Mar 28, 2020 5:43 PM UTC
Solved

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.

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

This topic has been closed for replies.
DBenn.1311
DBenn.1311Best answer
Associate II
Mar 29, 2020 12:12 AM UTC

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.

2 replies

DBenn.1311
DBenn.1311AuthorBest answer
Associate II
Mar 29, 2020 12:12 AM UTC

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.

waclawek.jan
Super User
Mar 29, 2020 9:54 AM UTC

Thumbs up.

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

JW