Skip to main content
Associate III
November 28, 2024
Question

LwIP Ethernet in STM32H7 working in STM32CubeIDE but not in IAR

  • November 28, 2024
  • 4 replies
  • 2663 views

Hi, 

I'm using STM32H745ZI implemented ethernet with Lwip it's working fine STM32CubeIDE(ver-1.90.0) but not in IAR(ver-9.30.1) like any changes that I need to do in .icf  file of IAR because it's working fine Cube IDE

4 replies

Andrew Neil
Super User
November 28, 2024

Have you tried debugging in IAR to what's failing, and where?

Do you have any other project(s) that work(s) on both STM32CubeIDE and IAR ?

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.
Lucifer37Author
Associate III
November 28, 2024

ping(IP address) is not working in IAR (request message come back in command cmd), Actually the same project is working in both IAR and CubeIDE but when I added Ethernet Lwip it stopped working in IAR

Andrew Neil
Super User
November 28, 2024

Enable LwIP diagnostic traces in both.

Compare & contrast ...

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.
Lucifer37Author
Associate III
November 28, 2024

How to do that? 

Andrew Neil
Super User
November 28, 2024
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.
STOne-32
Technical Moderator
November 28, 2024

Dear @Lucifer37 ,

 

in same cases, it is a matter to increase inside the .icf file the heap and stack size for RAM areas , check both linkers file and try to increase to a larger allocation .

Hope it helps ,

STOne-32

Lucifer37Author
Associate III
December 7, 2024

Hi @STOne-32 , @Andrew Neil

When FDCAN is enable it receiving data through CAN bus at that time Ethernet is not working, In middle some times response ping is working, After resetting stm32 board ping is working but after some times it stopped working,

Does FDCAN cause problem, because FDCAN receiving more data like more traffic is there so ethernet timeout happening. FDCAN using at 500kbps

After removing FDCAN it's working perfectly fine..............WHY I want both should work FINE...

Technical Moderator
March 12, 2026

Hello @Lucifer37,

I don’t think the issue is related to FDCAN or LwIP directly, but rather how you integrated both applications and managed the memory buffers required by each. You need to define separate memory sections for each to prevent corruption or overlap.

Best regards,

To improve visibility of answered topics, please click 'Accept as Solution' on the reply that resolved your issue or answered your question.