Skip to main content
Associate II
September 9, 2026
Question

STM32 nucleo- U5A5- Unable to get ethernet on android OS when using usb with cdc ncm

  • September 9, 2026
  • 8 replies
  • 43 views

I was trying to configure ethernet on my android phone via using usb cdc ncm on stm32 nucleo U5A5 and i was unable to see the ethernet option in the network settings of the phone.It was completely greyed out. I tried the same on ios and i was able to connect via ethernet. What am i supposed to do to resolve this ?
im using ncm of tiny usb for this connectivity.

8 replies

Peter BENSCH
ST Technical Moderator
September 9, 2026

Which Ethernet adapter have you connected to the Android phone?

Regards
/Peter

In order 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.
Associate II
September 15, 2026

i used a normal USB cable ( female to C type ) and connected android phone to the usb port of the stm board. no particular adapter was used.

Peter BENSCH
ST Technical Moderator
September 15, 2026

Your Android phone probably does not yet support NCM, or it is not being recognized as an Ethernet adapter.

Regards
/Peter

In order 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.
Associate II
September 16, 2026

I tested on samsung s24 ultra(version 16), google pixel and oneplus 9 5G(version 14) as well.. and all of them have the latest android version..I checked out some solutions which require modification in the adroid root code, but is there any other alternative?
reference blog- Why Android can't use CDC Ethernet

Andrew Neil
Super User
September 16, 2026

That blog explains that this is an Android issue - so nothing to do with ST or STM32.

It seems that Android is not going to work with any CDC NCM device - so that includes your Nucleo board.

 

If you want to connect your Nucleo board to an Android phone, you’re going to have to do it some other way.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Associate II
September 16, 2026

can i try configuring usb cdc ecm for android instead of ncm?? do you have any idea if that will work or not?