Based on the information provided, it seems like you are encountering a Hard Fault error when running the Ethernet_ping_Cm7 demo on your custom board, even though the same demo runs fine on the RT1176 EVK Board. This could be due to a variety of reasons, including differences in hardware configuration, memory allocation, or even the toolchain used for building and flashing the demo.
One possible cause could be the memory configuration. The RT1176 EVK Board has a QSPI size of 16MB, and you mentioned that your custom board also has the same QSPI size. However, it's important to ensure that the memory is correctly configured in your project settings.
Another possible cause could be differences in the hardware configuration between the EVK and your custom board. Even small differences in the hardware, such as the clock configuration or the pin assignments, can lead to issues when running the same code.
Lastly, it's also possible that the issue could be related to the toolchain or the process used for building and flashing the demo.
Without more specific information about the error and your custom board, it's hard to provide a more specific solution. However, I hope these suggestions can help you in troubleshooting the issue.