Skip to main content
SGasp.1
Associate III
February 22, 2024
Question

Library for stm32f429 for communicating with wiznet7500p

  • February 22, 2024
  • 19 replies
  • 3621 views

Hi amazing, 

Just a simple question.

Do you know if exists a library or repo with some example better for communicating with wiznet 7500 p? 

I have found this.. 

Should it work inside stm32cubeide?

https://github.com/Wiznet/W7500x_StdPeriph_Lib/tree/master

 

Thanks a lot for your help

This topic has been closed for replies.

19 replies

TDK
February 22, 2024

Yes, it will work. STM32CubeIDE is eclipse based and eclipse is supported.

W7500X is its own microcontroller and can't be programmed using ST tools. Likely the manufacturer has an IDE or recommended IDE for development.

"If you feel a post has answered your question, please click ""Accept as Solution""."
SGasp.1
SGasp.1Author
Associate III
February 22, 2024

Hi @TDK .. thanks for the reply ..

Do you think i can get inspiration from here to make a working example of st communicating with wiznet7500 in uart ?

 

https://github.com/afiskon/stm32-w5500/blob/master/Src/main.c

Thanks

Andrew Neil
Super User
February 22, 2024

@SGasp.1 wrote:

Do you think i can get inspiration from here to make a working example of st communicating with wiznet7500 in uart ?

https://github.com/afiskon/stm32-w5500/blob/master/Src/main.c


That's something completely different!

It says:

AndrewNeil_0-1708620287258.png

So, yes - that is what it says it's for!

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Andrew Neil
Super User
February 22, 2024

@SGasp.1 wrote:

 

Should it work inside stm32cubeide?

https://github.com/Wiznet/W7500x_StdPeriph_Lib/tree/master


It says:

"This library is a firmware package which contains a collection of routines, data structures and macros covering the features of W7500x peripherals."

It's for writing code to run within the Wiznet W7500x devices - not for code to run on an STM32!

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
SGasp.1
SGasp.1Author
Associate III
February 23, 2024

Hi @Andrew Neil ..

Thanks for your consideration

I will try to explain myself better .

I have a stm32f429 connected with uart to a wiznet 7500p.

The wiznet has been programmed with the following fw . 

https://docs.wiznet.io/Product/S2E-Module/WIZ750SR/download

The point is that i want to communicate wih the wiznet.

How can I make a test for understanding if the stm32 is communicating in a correct way with the wiznet?

Where i can find the protocol of the communication with the wiznet?

 

Thanks a lot 

 

 

Andrew Neil
Super User
February 23, 2024

@SGasp.1 wrote:

The wiznet has been programmed with the following fw . 

https://docs.wiznet.io/Product/S2E-Module/WIZ750SR/download


So the Serial-to-Ethernet firmware?

So you've read the User Manual:

AndrewNeil_0-1708685855136.png

https://docs.wiznet.io/Product/S2E-Module/serial-to-ethernet-guide#:~:text=Download%20WIZ100SR%20User%20Manual%20v2.2.0

The whole point of such a device is that it's transparent - the things connected to it neither knonw nor care that it's there.

It's for converting a "legacy" situation like this:

AndrewNeil_1-1708686651342.png

to this:

AndrewNeil_2-1708686678431.png

So the "legacy" devices remain blissfully unaware that they are not actually connected directly by the RS232!

 


@SGasp.1 wrote:

How can I make a test for understanding if the stm32 is communicating in a correct way with the wiznet?


It's just a UART connection - you treat it exactly as if the Wiznet were not there.

In fact, you should start by testing it without the Wizned - get your basic serial comms working before adding the Wiznet.

And test the link with Wiznets by using them between two PC terminals before trying it with your STM32.

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Andrew Neil
Super User
February 22, 2024

The Wiznet W7500 has its own on-board Cortex-M0, plus the well-known Wiznet "hardware" TCP/IP Stack:

AndrewNeil_1-1708620527182.png
https://www.wiznet.io/product-item/w7500/ 

 

If you've got an stm32f429, why do you need a Wiznet with its own on-board Cortex-M0?

Wouldn't it be better to use a Wiznet with just the  "hardware" TCP/IP Stack?

Or just run a software TCP/IP stack on the stm32f429?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Andrew Neil
Super User
February 22, 2024

@Andrew Neil wrote:

Wouldn't it be better to use a Wiznet with just the  "hardware" TCP/IP Stack?

Or just run a software TCP/IP stack on the stm32f429?


ie, their "TOE" (TCP Offload Ethernet) Chip range:

https://www.wiznet.io/product/tcpip-chip/

 


Or just run a software TCP/IP stack on the stm32f429?


It has Ethernet - so why would you add an external ethernet chip??

AndrewNeil_0-1708633363560.png

 

 

 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
SGasp.1
SGasp.1Author
Associate III
February 23, 2024

Hi @Andrew Neil ..

Your observation makes sense but i think all pins were busy no it has been decided to use the wiznet.

The point is now how to test the communication?

 

Thanks