In the IAP_Example example for the W7500P-Master there is a #define UART1. This seems to be incorrect because in the picture of the diagram attached in order to get debug print statements in a serial console you must use UART2. In the below code UART1 needs to be defined as UART2 in order to get proper debugging. This seems to be an oversight.
#define __DEBUG
#ifdef __DEBUG
#include “W7500x_uart.h”
#define USING_UART UART1
UART_InitTypeDef UART_InitStructure;
#endif
/* Private variables ---------------------------------------------------------*/
volatile TestStatus TransferStatus = FAILED;
uint8_t save_buff[BLOCK_SIZE];