2025-05-16 5:19 AM - last edited on 2025-05-20 2:26 AM by mƎALLEm
Hi all
I am trying to run ethernet stack along with freertos using TcpServer,so the issue what I am facing is I am not able to ping my board via hercules. I have checked all the configuration and register MAC MMC DMA is fine and even my three tasks 1ms 5ms 10ms are working fine .I am running systick timer for freertos and TIM2 for HAL delay. and timer also working fine .
I have checked plenty of times there is no issue with initialisation process as per my knowledge could you please help me.
NOTE: So I have few doubts related to ethernet first who will validate or where I will receive the incoming data or something when I try to first do hand shake by connect with the port from hercules.
Second doubt is there any buffer where I can see received information when connection is attempted via hercules.
so that I can atleast know whether my phy or MAC or DMA or TCP stack is not correctly working.
I am looking forward for your response like you helped me in previous queries I raised before.
B.R
Ashish
2025-05-21 6:28 AM - last edited on 2025-05-21 6:51 AM by mƎALLEm
Merged posts as they contain almost the same subject/question.
HI
I am working with freertos and LWIP and trying to send data from hercules to my board .
Can you tell ,me how can I see my data in RXbuffer or RXfifo.
B.R
Ashish
2025-05-26 8:37 AM
Hello @Ash1,
Make sure that both your board and computer are on the same network subnet, you can do this by checking if both devices share the same Gateway address and network subnet but have different IP addresses.
If the problem still persists, you can refer to this article "Debugging tips when working with an Ethernet peripheral". Through it, you can check whether the problem is from PHY or which layer the packets are dropped at.
Best regards,
2025-05-26 11:21 PM
Hi S TackPointer64
I have check everything is fine except the remote IP, I have developed code for stm32f407 in eclipse environment even I have tested without RTOS ,LWIP (it is working fine) but but with rtos register value is fine even task are running fine but I am getting different remoteIP.
Note: In stm32cubeIDE project is working fine but I am facing issue in eclipse environment in which I have generated .exe and flashing in stm32cubeide, (I have notice only one change that my remote IP is different ,I think this ,might be issue ,reason I am not able to connect via hercules).
B.R
Ashish
2025-05-27 2:48 AM
Hello @Ash1,
Can you walk me through the steps or elaborate more on the eclipse environment you set up?
Also, you can only flash Executable Linkable File ".ELF", Binary ".bin" or Hex ".hex" files to STM32.
Finally, did you use static IP configuration or DHCP? You can either write down the IP address you configured or print the DHCP allocated IP address on serial terminal.
Best regards,
2025-05-27 5:31 AM
Hi
I am using static IP only local IP address is correct the issue is with remote IP value is not same.
B.R
Ashish
2025-05-27 6:28 AM
Hello,
Can you elaborate more on the IP configuration for both your computer and board? In case you wish to run your application in a Wide Area Network, then you need to port forward, and configure your firewall.
Additionally, and if your application is running in a local network, you could use the application Wireshark to monitor the traffic sent from your computer and board, you should be able to identify your board by looking for MAC addresses starting with 00-80-e1 prefix.
Best regards,
2025-06-04 7:06 AM - edited 2025-06-04 7:06 AM
Hello @Ash1,
Are there any updates regarding your issue? Have you managed to solve your problem?
Best regards,