Hello,
STM32CubeMX setup for STM32MP157C-DK2 board does not automatically allocate Arduino peripherals on right location (as not used in our Starter Package demo and Arduino pins could be used for many usages). Simply activating UART7 make CubeMx to assign RX/TX to a free ball, without guarantee it is the one corresponding on the board schematics.
Under CubeMx, you have to assign manually the UART7_TX/RX on PE8/PE7 respectively:
- either type PE8 (or PE7) in lower right search box to make it blinking, then right click on the ball to select the UART7 function. This work before or after UART7 enable in CubeMx.
- or type UART7 in lower right search box to make balls blinking, then CTRL+click to drag to the correct 'blue highlighted' ball you want (i.e. PE8/PE7). This obviously only work after UART7 is enabled in CubeMx.