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
2026-01-12 10:28 PM
Hello ST team,
I am new to this ,what i want is to use ethernet and usb cdc to use simultaneously at a time without RTOS and i have tried with correct memory mappings but still not getting it
step 1 : i got a output when dcache is disabled and init() functions are in order: this is working 100%
but this is not a solution right?
so i tried with step2:by referring chatgpt but not getting and not able to ping it
i will upload the project file as a zip pls help me out
2026-01-13 6:10 AM
Do you configure USB controller as device or host?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2026-01-13 9:12 PM - edited 2026-01-13 9:28 PM
Hello St team ,
I am using USB Controller in fs mode and configured as Device only and class as Communication Device Class(CDC)
Thankyou
2026-01-23 3:13 AM
Please provide full description of your setup , environment ..? Which CDC class ACM or ECM?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.