---
title: "W7500P-Master (IAP_Example)"
url: "https://maker.wiznet.io/forum/11542"
markdown_url: "https://maker.wiznet.io/forum/11542/md"
type: "Forum topic"
category: "MCU & Boards"
author: "niko"
created: "2015-12-22T19:47:02+09:00"
last_activity: "2017-05-04T08:38:12+09:00"
language: "en"
views: 535
replies: 2
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# W7500P-Master (IAP_Example)

## Question

Asked by niko on 2015-12-22 in MCU & Boards.

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];

[![](https://maker.wiznet.io/forum_uploads/wiznet/original/1X/993e0db6315c0cc7d6a6161c823200130438f1f4.png) 967×626 52.7 KB](https://maker.wiznet.io/forum_uploads/wiznet/original/1X/993e0db6315c0cc7d6a6161c823200130438f1f4.png)

## Replies

### Reply 1 by niko, 2015-12-22

Also it’s not as simple as changing the #define to UART2. The structure being passed into the UartsPut() function is not of type UART2. Some rework is going needed. Also the function S_UartsPut() doesn’t work aswell.

### Reply 2 by ezheng, 2016-02-08

I wonder if this issue has been fixed in the new version? And I had the same problem when testing the IAP_Example?

---

Source: https://maker.wiznet.io/forum/11542
