cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure XCore407I STM32 Board Ethernet in Stm32CubeIDE?

KeshaV
Associate II

I have an XCore407I board with an Ethernet port installed. I'm trying to create a simple UDP server in Stm32CubeIDE. Compilation and uploading to the board is OK. But the board doesn't respond to ping and isn't visible in the router's device list.

Screenshot_7.png

Here are my settings in IDE.

Spoiler
Screenshot_2.pngScreenshot_3.pngScreenshot_4.pngScreenshot_5.pngScreenshot_6.png

Here is the main code.

int main(void)
{
  HAL_Init();
  SystemClock_Config();

  /* Initialize all configured peripherals */
  MX_GPIO_Init();
  MX_LWIP_Init();

  // Udp init function
  udpServer_init();

  while (1)
  {
     MX_LWIP_Process();
  }
}

Unfortunately, I can't attach the entire project here. But I can add code from other modules upon request.

Can you tell me how to set this up correctly so it works? Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions

@KeshaV wrote:

Sources on vendor's site is outdated 


That's something you need to take up with Waveshare - it's nothing to do with ST.

Otherwise, you'll just have to do it from first principles - as if it were a custom board of your own design.

 

If you want a ready-to-go solution from ST, try a Discovery or Nucleo board...

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.

View solution in original post

7 REPLIES 7
Andrew Neil
Super User

@KeshaV wrote:

I have an XCore407I board .


You mean this: https://www.waveshare.com/wiki/XCore407I

It's not an ST board, so your primary source for support should be Waveshare:

https://www.waveshare.com/wiki/XCore407I#Support

https://service.waveshare.com/

 

Using the ITM console for printf redirects and LWIP debug messages

 


@KeshaV wrote:

Unfortunately, I can't attach the entire project here. .


Why not?

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.
KeshaV
Associate II

Thanks for the reply. Yes, it's not an STM board, but it does have an STM32F407IGT6 processor. Are there any nuances to configuring this processor for Ethernet that I've missed?

I've attached the project.

Pavel A.
Super User

The web page for that board contains some downloads related to ethernet, for one - "stm32f4 IAP ETH".

It is a source project for a ST STM32F4 board with DP83848 PHY. Does the board actually have the DP83848?

Try to use these sources, as the board vendor recommends them.

 

Board have DP83848. See photo:

photo_2026-02-11_12-24-46.jpg

 

Sources on vendor's site is outdated and not for Stm32CubeIde. I can't compile them.


@KeshaV wrote:

Sources on vendor's site is outdated 


That's something you need to take up with Waveshare - it's nothing to do with ST.

Otherwise, you'll just have to do it from first principles - as if it were a custom board of your own design.

 

If you want a ready-to-go solution from ST, try a Discovery or Nucleo board...

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.
KeshaV
Associate II

Ok. Thank you.

Pavel A.
Super User

Here you can find help to adapt these sources and other available examples to CubeIDE.