---
title: "Stm32 communicating in uart with wiznet 7500p"
url: "https://maker.wiznet.io/forum/15154"
markdown_url: "https://maker.wiznet.io/forum/15154/md"
type: "Forum topic"
category: "MCU & Boards"
author: "simogaspa84"
created: "2024-02-23T11:29:47+09:00"
last_activity: "2024-03-03T23:20:44+09:00"
language: "en"
views: 230
replies: 9
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# Stm32 communicating in uart with wiznet 7500p

## Question

Asked by simogaspa84 on 2024-02-23 in MCU & Boards.

Hi amazing wiznet community…

I am working with stm32 and wiznet7500p.

I want to communicate with it with uart .

I see that i can change the baudrate start bit and other things from the app gui dedicated.

Which are the default pins RX and Tx which are used ?

If i want to send commands with uart and receive the answer Can I use this llist ?

![](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/6/644ed88132c30d4d0e05e815d420f1bab85f0843.png) [docs.wiznet.io](https://docs.wiznet.io/Product/S2E-Module/WIZ750SR/command-manual-EN#basic-commands)

![](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/1/1c62c3ee6ae3ce074bf59833f86d4e440a16c970.png)

### [Command Manual-\[EN\] | WIZnet Document System](https://docs.wiznet.io/Product/S2E-Module/WIZ750SR/command-manual-EN#basic-commands)

Supported Languages

Thanks a lot

## Replies

### Reply 1 by TheoIm, 2024-02-26

Hello, this is WIZnet Theo.

If you want to use the basic UART communication with W7500p, you should use the following pins on PORT A, C:

- UART 0: RXD is PA14, TXD is PA13

- UART 1: TXD is PC02, RXD is PC03

The dedicated app you mentioned is designed for the S2E module based on the W7500 MCU. It is not compatible with the standard W7500P firmware. Additionally, the commands from the link you provided are specifically for S2E modules utilizing the W7500 MCU, and there are no separate commands available for the W7500P.

Thanks.

### Reply 2 by simogaspa84, 2024-02-26 (in reply to reply 1)

Hi [@Theo](https://maker.wiznet.io/u/theo) Theo…
Thanks for your reply… So if i want to coomunicate in uart with wiznet7500p i must use the uart0 and uart 1 you mentioned ? Can I use PA13 or PA14 ?
Which is the right fw to download to use and test the uart communication with wiznet 7500p?

Thanks a lot

[![image](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/c/ca33e92d1434bfffa47736ac1c02aeda88f97f92.png) image1283×715 263 KB](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/c/ca33e92d1434bfffa47736ac1c02aeda88f97f92.png)

### Reply 3 by TheoIm, 2024-02-26

Hello, the photo you uploaded is of a board using the W7500P for an S2E module, which has very limited pinout availability. If you follow this, you’ll find the pinout usage restricted and development will be quite difficult. Therefore, I recommend following the link below for connections. I will upload links containing the schematics, firmware, and reference materials. It would be good to refer to these for your development.

Also, you asked if you could use PA13 and PA14 for UART communication, and yes, that’s possible. You can use those pins for UART 0. Below are the links related to W7500P for your reference.

W7500P Schematic link: [Hardware-Files-of-WIZnet/01_iMCU/W7500P/Reference Schematic at master · Wiznet/Hardware-Files-of-WIZnet · GitHub](https://github.com/Wiznet/Hardware-Files-of-WIZnet/tree/master/01_iMCU/W7500P/Reference%20Schematic)

W7500P Firmware link: [GitHub - Wiznet/W7500x_StdPeriph_Lib: Standard peripherals library for the W7500x](https://github.com/Wiznet/W7500x_StdPeriph_Lib/tree/master)

W7500P Reference materials link: [Documents | WIZnet Document System](https://docs.wiznet.io/Product/iMCU/W7500P/documents)

Thanks.

### Reply 4 by simogaspa84, 2024-02-27

Hi [@Theo](https://maker.wiznet.io/u/theo)

Thanks for your time.

Just few doubts because it is the first time i use the wiznet device. So your are saying this fw for 7500 p is wrong

![](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/9/98d056d71c1b9ddf151d4f0b30201058d98043e1.png) [docs.wiznet.io](https://docs.wiznet.io/Product/S2E-Module/WIZ750SR/download)

![](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/1/1c62c3ee6ae3ce074bf59833f86d4e440a16c970.png)

### [Download | WIZnet Document System](https://docs.wiznet.io/Product/S2E-Module/WIZ750SR/download)

WIZ750SR Series Downloads

and i should use the one you provided in the github page…

Can i still use this too to download the fw in the wiznet by using the ethernet port?

my current situation with the fw downloaded inside

![image](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/9/9bd60788f59e62a77532d967ea9fe8a9dc11047c.png)

[![image](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/c/c25e4b316bb552567d118f6e17921674a39b167b.png) image970×329 40.2 KB](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/c/c25e4b316bb552567d118f6e17921674a39b167b.png)

![](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/e/e3a9184e1a3951b370daa897e76499d0900de21b.png) [wiznet.io](https://www.wiznet.io/product-item/wiz750sr/)

### [WIZ750SR | WIZnet Co., Ltd.](https://www.wiznet.io/product-item/wiz750sr/)

Support fast evaluation & test of WIZ550S2E module and two types of base board for RS-232 & RS-422/485 interface

the github link you provided are c and h files not a bin… how can i do that?

My task is to communicate with wiznet with uart with stm32… the fw link you provided is ok?

I would like to know the workflow…

I suppose i have to create a .bin from the github repo you provided…
which ide you reccomend?
One i have created the .bin i can upload on it by using

[How to use ISP tool | WIZnet Document System](https://docs.wiznet.io/Product/iMCU/W7500/documents/appnote/how-to-use-isp-tool) ?

Is it correct?

Can i use this guide but with the github repo for 7500 p?

![](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/9/98d056d71c1b9ddf151d4f0b30201058d98043e1.png) [docs.wiznet.io](https://docs.wiznet.io/Product/iMCU/W7500/documents/appnote/how-to-use-mdk-for-w7500-peripherals-examples)

![](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/1/1c62c3ee6ae3ce074bf59833f86d4e440a16c970.png)

### [How to use MDK for W7500 Peripherals Examples | WIZnet Document System](https://docs.wiznet.io/Product/iMCU/W7500/documents/appnote/how-to-use-mdk-for-w7500-peripherals-examples)

(C) COPYRIGHT 2015 WIZnet

Once i did where i can find the protocol fopr communicating with 7500 p?

Last question… since my ultimate task it is to use the wiznet as a webserver …
Is it correct to use such library ?

[github.com](https://github.com/Wiznet/W7500x_StdPeriph_Lib/tree/master/Libraries/ioLibrary/Ethernet)

### <https://github.com/Wiznet/W7500x_StdPeriph_Lib/tree/master/Libraries/ioLibrary/Ethernet>

[//github.com/Wiznet/W7500x_StdPeriph_Lib/tree/master/Libraries/ioLibrary/Ethernet](https://github.com/Wiznet/W7500x_StdPeriph_Lib/tree/master/Libraries/ioLibrary/Ethernet)

The point is that i would like to create a .bin to have the library for the webserver and also library for uart just to test the communication with stm32.

Once i have download the .bin inside the wiznet … where i can find the documentatio about how to create the packet to transmit ?

I hope to be enough clear

Last observation is that inside the wiznet7500 p there is the fw in the attachments…
But when i try to communicate in uart with him with stm32 i don’t get any answer back…
Moreover i don’t know the protocol

Thanks for explaining
[WIZ750SRv129_incl_Boot.bin](https://maker.wiznet.io/forum/legacyFile.asp?path=tZIKZZWiRlyK193lxwKORNvMz4o.bin) (66,5 KB)

### Reply 5 by TheoIm, 2024-02-28

1. It appears that you are continually referring to the WIZ750SR documentation to operate the W7500P. However, I must reiterate that the WIZ750SR is merely an S2E module board containing the MCU you are using, and it is unlikely to be a solution to your problem.

Previously, I mentioned, “The dedicated app you mentioned is designed for the S2E module based on the W7500 MCU.” The configuration tool you have uploaded is a “dedicated app for the S2E module equipped with the W7500P,” not an app for developing the W7500P MCU. Therefore, you cannot download firmware to an undesignated W7500P using that app.

If you are not using an S2E module, there is no need to refer to that app.

1. Naturally, the firmware link I provided on GitHub is a project folder, so it is natural for it to contain .c files and .h files.

If you wish to download FW to the MCU as you mentioned,

Modify the code in the GitHub project to fit the desired operation → Extract the .bin file from the completed project (build in the development environment) → Download using the ISP Tool (UART and the ISP tool must be connected to the downloaded PC, and it must be confirmed that the MCU’s USB port is detected by the PC) → Confirm the operation from the MCU

You must go through these processes.

**If you want to build a W7500P project in the development environment, please refer to the document below.**

![](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/7/7d08881bbfae7798be2bbeb47da3980b770a0478.png) [docs.wiznet.io](https://docs.wiznet.io/Product/Open-Source-Hardware/surf5/getting-started/install-keil-guide)

![](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/1/1c62c3ee6ae3ce074bf59833f86d4e440a16c970.png)

### [How to install Keil uVision MDK-Lite version | WIZnet Document System](https://docs.wiznet.io/Product/Open-Source-Hardware/surf5/getting-started/install-keil-guide)

How to setup keil with Surf 5

![](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/7/7d08881bbfae7798be2bbeb47da3980b770a0478.png) [docs.wiznet.io](https://docs.wiznet.io/Product/Open-Source-Hardware/surf5/getting-started/fw-examples#how-to-make-surf-5-project-in-keil-5)

![](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/1/1c62c3ee6ae3ce074bf59833f86d4e440a16c970.png)

### [How to make Surf 5 Projects | WIZnet Document System](https://docs.wiznet.io/Product/Open-Source-Hardware/surf5/getting-started/fw-examples#how-to-make-surf-5-project-in-keil-5)

How to set-up vs code and keil 5 before using Surf 5

**If you want to know about the method of downloading FW using ISP, please refer to the following documents in order.**

![](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/7/7d08881bbfae7798be2bbeb47da3980b770a0478.png) [docs.wiznet.io](https://docs.wiznet.io/Product/Open-Source-Hardware/surf5/getting-started/install-usb-driver)

![](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/1/1c62c3ee6ae3ce074bf59833f86d4e440a16c970.png)

### [How to Install UART to USB Driver | WIZnet Document System](https://docs.wiznet.io/Product/Open-Source-Hardware/surf5/getting-started/install-usb-driver)

How to install usb driver for Surf 5

![](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/7/7d08881bbfae7798be2bbeb47da3980b770a0478.png) [docs.wiznet.io](https://docs.wiznet.io/Product/Open-Source-Hardware/surf5/getting-started/flashing-surf5)

![](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/1/1c62c3ee6ae3ce074bf59833f86d4e440a16c970.png)

### [How to use ISP tool | WIZnet Document System](https://docs.wiznet.io/Product/Open-Source-Hardware/surf5/getting-started/flashing-surf5)

How to flash Surf 5

### Reply 6 by simogaspa84, 2024-02-28

Hi [@Theo](https://maker.wiznet.io/u/theo) …

Thanks again for your time…

you said
*Modify the code in the GitHub project to fit the desired operation*
Can you give me some tips about what to modify for enabling uart and webserver in the github repo you mentioned?

Once I download the .bin (created from the github repository and including the iotlibrary i need for the webserver and the the uart peripherals fro communicating with stm ) by using the isp tool ,
How can I test the communication or the web server ?

this is my current situation… i was able to install keil and compile the template example in the github repo

[![image](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/0/0e7d6eff3f3f083bed32fcb00eada83c0cb09dc0.png) image2308×1355 161 KB](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/0/0e7d6eff3f3f083bed32fcb00eada83c0cb09dc0.png)

But now as i told you i need to integrate uart and webserver…
It is not clear to me if it enough to add the libraries here and how ?
Can you provide same examples or link where is described ?

I have found this example for uart

[github.com](https://github.com/Wiznet/W7500x_StdPeriph_Lib/tree/master/Projects/W7500x_StdPeriph_Examples/UART/UART_Polling)

### <https://github.com/Wiznet/W7500x_StdPeriph_Lib/tree/master/Projects/W7500x_StdPeriph_Examples/UART/UART_Polling>

[//github.com/Wiznet/W7500x_StdPeriph_Lib/tree/master/Projects/W7500x_StdPeriph_Examples/UART/UART_Polling](https://github.com/Wiznet/W7500x_StdPeriph_Lib/tree/master/Projects/W7500x_StdPeriph_Examples/UART/UART_Polling)

I could try to send data to the stm32 and to see if i receive something…

But then as i said my ultimate task it is send the data in uart and the wiznet should translate them in an automatic way…

For doing this task which is the best example to use?

Thanks again for your time
[W7500x.bin](https://maker.wiznet.io/forum/legacyFile.asp?path=krPt7UeVftMW1LXCsERIss4eqYL.bin) (4,3 KB)

### Reply 7 by TheoIm, 2024-02-29

first, start and analyze the web server example in this directory. Then, initiate UART communication in the web server example and try outputting the data emitted from uart to the web server. And you can proceed with the implementation of detailed functions on your own.

[github.com](https://github.com/Wiznet/W7500x_StdPeriph_Lib/tree/master/Projects/W7500x_StdPeriph_Examples/WZTOE)

### <https://github.com/Wiznet/W7500x_StdPeriph_Lib/tree/master/Projects/W7500x_StdPeriph_Examples/WZTOE>

[//github.com/Wiznet/W7500x_StdPeriph_Lib/tree/master/Projects/W7500x_StdPeriph_Examples/WZTOE](https://github.com/Wiznet/W7500x_StdPeriph_Lib/tree/master/Projects/W7500x_StdPeriph_Examples/WZTOE)

### Reply 8 by simogaspa84, 2024-03-01

Thanks [@Theo](https://maker.wiznet.io/u/theo) …

So it is more clear.

I will try to send some data from stm32 to the wiznet running the web server example you said.
Then when i know the ip adress of the wiznet i can try to check the web page in the dedicated ip address and to see if i am getting some data from stm32.

With the example you provide am I free to send any data to uart without following a specific protocol?

In the example they are using uart1 but in my case since the pins i am using are pa14 and pa13 i have to use uart 0

Is it correct?

Thanks

### Reply 9 by TheoIm, 2024-03-03

Yes, that’s right. It’s a matter of course.

---

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