Loading...
 

STM32MP1 support available in SW4STM32

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world.
And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4; you can download a short video showcasing this on the ac6-tools website (registration required).

System Workbench for STM32


You are viewing a reply to STM32CubeMX LWIP not working  

STM32CubeMX LWIP not working

I have uploaded 2 files to uploadfiles.io.

There is a file named STM_Ethernet.zip that is at http://ufile.io/57k7jQuestion and a file named LWIP-Ethernet.hex that is at https:/ufile.io/s8kfq.

The zip file contains the source files that I used to make my board work. I haven’t worked with STM32 parts in a couple of years so I won’t be able to offer any help if your board does not work.

If you unzip the file and look in the STMNew/Eth-Test/Src folder, you will see a file named lwip.c. Within that file there is a function named MX_LWIP_Init where the IP address and Netmask are assigned statically. I have them set to 172.16.1.177/255.255.255.0. You can chage the IP address to match your subnet, recompile the code, and program your board.

If you happen to be using a subnet of 172.16.1, you can program you board with the hex file that I built for my board. That file is named Eth-test.hex and is located in the STMNew/Eth-Test/Release folder. You should then be able to ping the board at 172.16.1.177.

The LWIP-Ethernet.hex can be used to verify if your hardware is working. It uses dhcp to obtain an IP address from your network DNS server. If you program your board with the hex file, you will be able to open a webpage by using a web browser to connect to the IP address that the board obtains from your DNS server.

Both hex files assume you are using a STM32F407 processor and a DP83848 Ethernet Phy device.

Good luck with your project.

 

Newest Forum Posts

  1. Build fails when running through command line by rangpava, 2019-05-17 19:29
  2. SWD option gone by dangermouse, 2019-05-17 17:22
  3. syscalls and STM32CubeMX by CHAABANI Ameny, 2019-05-17 17:11
  4. Problem verifing and downloading code by elvarliiv, 2019-05-17 12:05
  5. Problem verifing and downloading code by asierdo, 2019-05-17 11:50
  6. STM32 System Workbench File Opening as Text File. by ArjunSingh, 2019-05-17 08:02
  7. Issue snprintf floats by ArminOonk, 2019-05-16 16:15
  8. Issue snprintf floats by ArminOonk, 2019-05-16 16:01
  9. Adding new Include files by Mohd Tanveer, 2019-05-16 07:51
  10. UNPLUGGED TARGET DURING DEBUG SESSION , ERROR IN FINAL LAUNCH SEQUENCE by dbdb, 2019-05-16 06:44

Last-Modified Blogs