Skip to main content
DBenn.1311
Associate II
March 28, 2020
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.

  • March 28, 2020
  • 2 replies
  • 795 views

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.
Best answer by DBenn.1311

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
March 29, 2020

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
March 29, 2020

Thumbs up.

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

JW