2025-07-15 10:00 PM
Hi Team,
I made a custom board using STM32F769BIT microcontroller using with the DP83867 PHY in MII mode, but I am not able to ping it. What could be the possible reasons?
I did Memory configurations for TxDecrip, RxDecrip, LwipHeap like this.
.lwip_sec (NOLOAD) :
. = ABSOLUTE(0x2007C000);
*(.RxDecripSection)
. = ABSOLUTE(0x2007C0A0);
*(.TxDecripSection)
. = ABSOLUTE(0x2007C140);
*(.LwIPHeap)
also my SRAM configuration is like this_
MEMORY
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 496K
SRAM2 (xrw) : ORIGIN = 0x2007C000, LENGTH = 16K
FLASH (rx) : ORIGIN = 0x8000000, LENGTH = 2048K
I am using the 10pin STM32 debugger, but I am not able to see the stack usage there, when I press the debug button.
Is it due to code or due to the debugger? For this should I need the 20pin debugger?
Thanks,
Sayan Das
2025-07-25 3:34 AM
The board is not defective. All other functions are got tested, sir.
2025-07-25 3:46 AM
@Sayan wrote:The board is not defective. .
How have you proved that?
@Sayan wrote:All other functions are got tested.
Which doesn't mean that there's no issues with this function!
It's not uncommon for most of a board to work fine - and there to be an issue with just one part.
2025-07-28 12:31 AM
@Sayan :
I am VERY happy to see that board is working perfect and code is perfect as well !
That means, all problems are solved; please mark as solved and the topics is closed.
Good luck.
Mike
2025-07-28 1:47 AM - edited 2025-07-28 1:47 AM
@mbarg.1 wrote:all problems are solved; please mark as solved and the topics is closed.
You do that - instructions here.
It would be helpful if you would describe what was actually wrong, and how you found it, and what was the fix.
2025-07-29 5:34 AM
Hello @Sayan, and welcome to the community!
Could you please answer the following questions to help me better understand the issue?
The more details you provide about your debugging steps and investigations, the better I can assist you in resolving the issue.
Best regards,
2025-07-30 3:13 AM
2025-07-30 3:20 AM
@Sayan wrote:
- How to do stepping in the code?
See the documentation for whatever IDE you're using.
For STM32CubeIDE:
https://www.st.com/resource/en/user_manual/um2609-stm32cubeide-user-guide-stmicroelectronics.pdf
https://wiki.st.com/stm32mcu/wiki/Category:STM32CubeIDE#Videos_related_to_STM32CubeIDE - links to videos & tutorials.
2025-08-01 8:38 AM
Hello @Sayan,
Have you verified that the PHY is properly clocked? The PHY is sensitive to clock settings.
I suggest placing a breakpoint at line 307 in the ethernetif.c file and stepping through the code in debug mode to check which speed and duplex mode are selected. This will help rule out issues related to improper PHY clocking and initialization.
switch (PHYLinkState)
Also, ensure your MPU configuration prevents memory corruption, something similar to the figure below, and make the necessary adjustments to the linker file.
+----------------------+-------------------------------------------------+-------+
| 0x00000000 | Strongly Ordered Region (Not defined regions) | 4 GB |
| | Access Permission: No Access | |
| | Bufferable: No | |
| | Cacheable: No | |
| | Shareable: Yes | |
| | TEX Level: 0 | |
| | SubRegion Disable: 0x87 | |
| | Instruction Access: Disabled | |
+----------------------+-------------------------------------------------+-------+
| 0x20078000 | Ethernet Buffers | 16 KB |
| | Access Permission: Full Access | |
| | Bufferable: No | |
| | Cacheable: No | |
| | Shareable: No | |
| | TEX Level: 1 | |
| | SubRegion Disable: 0x00 | |
| | Instruction Access: Enabled | |
+----------------------+-------------------------------------------------+-------+
| 0x2007C000 | Ethernet Descriptors | 1 KB |
| | Access Permission: Full Access | |
| | Bufferable: Yes | |
| | Cacheable: No | |
| | Shareable: Yes | |
| | TEX Level: 0 | |
| | SubRegion Disable: 0x00 | |
| | Instruction Access: Enabled | |
+----------------------+-------------------------------------------------+-------+
Stepping through the MX_LWIP_INIT() function will help confirm whether LwIP initializes correctly or if the program halts during initialization. Please make sure you
Please make sure to test the steps I mentioned and provide me with updates so we can proceed further.
Best regards,