2026-01-12 3:39 AM - last edited on 2026-01-12 4:34 AM by Andrew Neil
Hello guys,
I am using Ethernet and USB together. Ethernet in rmii mode without RTOS and Using USB as cdc,
after flashing the program it runs normally but when i ping or Access the IP from web :spider_web: it goes to hard fault handler
If USB init () is Commented then everything is working fine but when uncommented it goes to hard fault handler
so i want the solution to use USB and Ethernet simultaneously and can it be used without RTOS or should we use RTOS?
2026-01-12 3:45 AM
Hello @Omkar_chandaragi and welcome to the ST community,
USB and Ethernet can be used simultaneously on STM32H7 and can be used without RTOS.
Check if you have issues with memory sharing between both USB and Ethernet. Did you study the memory split between both related software (USB and ETH)?
Read How to debug a HardFault on an Arm® Cortex®-M STM32