cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H753ZI: Ethernet and usb cdc together problem

Omkar_chandaragi
Associate II

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?

5 REPLIES 5
mƎALLEm
ST Employee

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

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.

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 Screenshot 2026-01-13 114705.pngScreenshot 2026-01-13 115157.pngScreenshot 2026-01-13 115205.png

FBL
ST Employee

Hi @Omkar_chandaragi 

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.




Best regards,
FBL

Hello St team ,

I am using  USB Controller in  fs mode and configured  as Device only and class as Communication Device Class(CDC)


Thankyou

Hi @Omkar_chandaragi 

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.




Best regards,
FBL