You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nuttx.apache.org by Simon Filgis <si...@ingenieurbuero-filgis.de.INVALID> on 2025/06/08 16:06:09 UTC

STM32F479NGH6 + Ethernet

Dear all,

I want to add ethernet to a new project based on STM32F479NGH6.

Has somebody worked with this configuration? Any tips or recommendations in
choosing a MAC phy?

I would like to have a proof of concept (switch to nuttx) with very little
effort.

Best regards,

Simon

--
Hard- and Softwaredevelopment Consultant

Geschäftsführung: Simon Filgis
USt-IdNr.: DE305343278
ISO9001:2015 <https://activities.ingenieurbuero-filgis.de/certifications>

Re: STM32F479NGH6 + Ethernet

Posted by "Alan C. Assis" <ac...@gmail.com>.
Hi Simon,
I used DP83848C about 10 years ago and it was really easy to use on NuttX
("just works").

Then about 3 years ago I used LAN8740AI with STM32H743 and it also worked,
but it required some tweaks to configure the right PHY registers.

BTW, you are not limited only to those two options we cited, enter inside
boards/ and run: "git grep CONFIG_ETH0_PHY" to see all other PHYs supported
by NuttX.

But of course, if you want the "comfort zone" stay with DP83848C, but keep
in mind it has disadvantages: i.e. 40-100ms startup time vs 20ms
of KSZ8061. Also KSZ8061 has better EMI.
And there is KSZ8061 with automotive grade.

BR,

Alan

On Sun, Jun 8, 2025 at 2:20 PM Simon Filgis
<si...@ingenieurbuero-filgis.de.invalid> wrote:

> Seems like
>
>
>    1. DP83848C
>    There is some code for it in stm32_x.c  and it is placed on an old
>    evaluation board of STM: STM32469I-EVAL
>    And another board, that is already in nuttx boards:
>
> https://www.viewtool.com/index.php/en/36-2016-09-26-03-58-56/99-ficus-stm32f107
>    Not sure where to by the second board and how good support is.
>    2. KSZ90x1
>    There seems to be code for it in stm32_x.c and I have it running in two
>    SAMV7 projects. But there is no board in the tree for usage or I don't
> find
>    it.
>    3. KSZ8081
>    There is some code for it in stm32_x.c  and it is placed on an old
>    evaluation board: linum-stm32h753bi
>    Cant find a vendor for the board
>    4. KSZ8061
>    There seems to be code for it in stm32_x.c and I have it running in two
>    SAMV7 projects. But there is no board in the tree for usage with STM32.
>    5. KSZ8051
>    There seems to be code for it in stm32_x.c and I have it running in two
>    SAMV7 projects. But there is no board in the tree for usage with STM32.
>
>
>
>    - So KSZ8061 has a good change and I know it performs well in Nuttx
>    with SAMv7, but
>    - DP83848C has a old board in tree very near to the target processor:
>    STM32469I - while I will have to use STM32F479NG.
>
>
> Are there any suggestions on how to decide between those two?
> Did I miss an option?
>
>
> Best Regards,
>
>
> Simon
>
>
> --
> Hard- and Softwaredevelopment Consultant
>
> Geschäftsführung: Simon Filgis
> USt-IdNr.: DE305343278
> ISO9001:2015 <https://activities.ingenieurbuero-filgis.de/certifications>
>
>
> On Sun, Jun 8, 2025 at 6:06 PM Simon Filgis <
> simon@ingenieurbuero-filgis.de>
> wrote:
>
> > Dear all,
> >
> > I want to add ethernet to a new project based on STM32F479NGH6.
> >
> > Has somebody worked with this configuration? Any tips or recommendations
> > in choosing a MAC phy?
> >
> > I would like to have a proof of concept (switch to nuttx) with very
> little
> > effort.
> >
> > Best regards,
> >
> > Simon
> >
> > --
> > Hard- and Softwaredevelopment Consultant
> >
> > Geschäftsführung: Simon Filgis
> > USt-IdNr.: DE305343278
> > ISO9001:2015 <https://activities.ingenieurbuero-filgis.de/certifications
> >
> >
>

Re: STM32F479NGH6 + Ethernet

Posted by N M <mc...@gmail.com>.
KSZ90x1 is a gigabit PHY. I see mention of support for it here
https://github.com/apache/nuttx/blob/dd07367f4eeb5ebe785c601e84143cfaf6ad411a/include/nuttx/net/gmii.h#L65 

I haven’t used this PHY for any NuttX projects though.

I worked on a project a few years ago and we wanted to be up and running as quick as possible. We based our design off of PJRCs Teensy 4.1 which uses a TI DP83825I (industrial temp range). I verify seeing support here: https://github.com/apache/nuttx/blob/master/include/nuttx/net/mii.h

I don’t recall us having to do any major work to support this PHY. 

All the PHYs you mentioned are usual choices so I’d imagine you won’t run into too much difficulty if the schematic capture and layout is good. If you are doing the board design I would suggest choosing something you already know how to do the design with (if that is an option).

~Nick Mccarty
InPhase Embedded
https://www.inphaseembedded.com <https://www.inphaseembedded.com/>
 


> On Jun 8, 2025, at 10:19 AM, Simon Filgis <si...@ingenieurbuero-filgis.de.invalid> wrote:
> 
> Seems like
> 
> 
>   1. DP83848C
>   There is some code for it in stm32_x.c  and it is placed on an old
>   evaluation board of STM: STM32469I-EVAL
>   And another board, that is already in nuttx boards:
>   https://www.viewtool.com/index.php/en/36-2016-09-26-03-58-56/99-ficus-stm32f107
>   Not sure where to by the second board and how good support is.
>   2. KSZ90x1
>   There seems to be code for it in stm32_x.c and I have it running in two
>   SAMV7 projects. But there is no board in the tree for usage or I don't find
>   it.
>   3. KSZ8081
>   There is some code for it in stm32_x.c  and it is placed on an old
>   evaluation board: linum-stm32h753bi
>   Cant find a vendor for the board
>   4. KSZ8061
>   There seems to be code for it in stm32_x.c and I have it running in two
>   SAMV7 projects. But there is no board in the tree for usage with STM32.
>   5. KSZ8051
>   There seems to be code for it in stm32_x.c and I have it running in two
>   SAMV7 projects. But there is no board in the tree for usage with STM32.
> 
> 
> 
>   - So KSZ8061 has a good change and I know it performs well in Nuttx
>   with SAMv7, but
>   - DP83848C has a old board in tree very near to the target processor:
>   STM32469I - while I will have to use STM32F479NG.
> 
> 
> Are there any suggestions on how to decide between those two?
> Did I miss an option?
> 
> 
> Best Regards,
> 
> 
> Simon
> 
> 
> --
> Hard- and Softwaredevelopment Consultant
> 
> Geschäftsführung: Simon Filgis
> USt-IdNr.: DE305343278
> ISO9001:2015 <https://activities.ingenieurbuero-filgis.de/certifications>
> 
> 
> On Sun, Jun 8, 2025 at 6:06 PM Simon Filgis <si...@ingenieurbuero-filgis.de>
> wrote:
> 
>> Dear all,
>> 
>> I want to add ethernet to a new project based on STM32F479NGH6.
>> 
>> Has somebody worked with this configuration? Any tips or recommendations
>> in choosing a MAC phy?
>> 
>> I would like to have a proof of concept (switch to nuttx) with very little
>> effort.
>> 
>> Best regards,
>> 
>> Simon
>> 
>> --
>> Hard- and Softwaredevelopment Consultant
>> 
>> Geschäftsführung: Simon Filgis
>> USt-IdNr.: DE305343278
>> ISO9001:2015 <https://activities.ingenieurbuero-filgis.de/certifications>
>> 


Re: STM32F479NGH6 + Ethernet

Posted by Simon Filgis <si...@ingenieurbuero-filgis.de.INVALID>.
Seems like


   1. DP83848C
   There is some code for it in stm32_x.c  and it is placed on an old
   evaluation board of STM: STM32469I-EVAL
   And another board, that is already in nuttx boards:
   https://www.viewtool.com/index.php/en/36-2016-09-26-03-58-56/99-ficus-stm32f107
   Not sure where to by the second board and how good support is.
   2. KSZ90x1
   There seems to be code for it in stm32_x.c and I have it running in two
   SAMV7 projects. But there is no board in the tree for usage or I don't find
   it.
   3. KSZ8081
   There is some code for it in stm32_x.c  and it is placed on an old
   evaluation board: linum-stm32h753bi
   Cant find a vendor for the board
   4. KSZ8061
   There seems to be code for it in stm32_x.c and I have it running in two
   SAMV7 projects. But there is no board in the tree for usage with STM32.
   5. KSZ8051
   There seems to be code for it in stm32_x.c and I have it running in two
   SAMV7 projects. But there is no board in the tree for usage with STM32.



   - So KSZ8061 has a good change and I know it performs well in Nuttx
   with SAMv7, but
   - DP83848C has a old board in tree very near to the target processor:
   STM32469I - while I will have to use STM32F479NG.


Are there any suggestions on how to decide between those two?
Did I miss an option?


Best Regards,


Simon


--
Hard- and Softwaredevelopment Consultant

Geschäftsführung: Simon Filgis
USt-IdNr.: DE305343278
ISO9001:2015 <https://activities.ingenieurbuero-filgis.de/certifications>


On Sun, Jun 8, 2025 at 6:06 PM Simon Filgis <si...@ingenieurbuero-filgis.de>
wrote:

> Dear all,
>
> I want to add ethernet to a new project based on STM32F479NGH6.
>
> Has somebody worked with this configuration? Any tips or recommendations
> in choosing a MAC phy?
>
> I would like to have a proof of concept (switch to nuttx) with very little
> effort.
>
> Best regards,
>
> Simon
>
> --
> Hard- and Softwaredevelopment Consultant
>
> Geschäftsführung: Simon Filgis
> USt-IdNr.: DE305343278
> ISO9001:2015 <https://activities.ingenieurbuero-filgis.de/certifications>
>