ESP32 ethernet, SPI, JTAG pin questions

Ankit Nikumbh
Posts: 7
Joined: Mon Oct 24, 2016 12:39 pm

ESP32 ethernet, SPI, JTAG pin questions

Postby Ankit Nikumbh » Mon Oct 24, 2016 12:54 pm

Hello,

I am working on ESP-32 Wroom module. I want to know about how can I interface RMII signals to the MCU as I need Ethernet connection!!!!!!!

As there are different pins for MDC_out(any GPIO given in datasheet), MDI_in, MDO_out......

And for REF_CLK, can I connect it with EMAC_Tx_CLK ? Both are same or different??

Also for SPI interface I saw few discussion based on SPI signals(MTDI, MTCK, MTMS, MTDO). Please try to solve my confusion related to MISO, MOSI, SCK, CS... Which signal is related to MTDI/MTCK/MTMS/MTDO??

Try to reply ASAP

Thank you

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 hardware pin questions

Postby ESP_Sprite » Tue Oct 25, 2016 2:19 am

Please see http://www.espressif.com/sites/default/ ... t_en_0.pdf for documentation on which pins connect to the Ethernet MAC.

MTDI/MTDO/... are JTAG signals and don't have anything to do with SPI. You can look up the pins for SPI in the above document as well. If you don't mind a latency of 2 80MHz clock cycles and a slower SPI slave mode speed, you can also route the SPI pins to any other GPIO as well.

Ankit Nikumbh
Posts: 7
Joined: Mon Oct 24, 2016 12:39 pm

RMII Interface

Postby Ankit Nikumbh » Fri Dec 02, 2016 6:48 am

Hi,

As I'm using Wroom-32 and I want to use RMII Interface then which pin provides 50MHz of clock output as a reference clock for PHY transceiver??? Either GPIO16(EMAC_CLOCK_OUT) or GPIO17(EMAC_CLOCK_OUT_180).....

And also, what will be the output of CLOCK_OUT1(IO0), CLOCK_OUT2(IO3) and CLOCK_OUT3(IO1)???

User avatar
rudi ;-)
Posts: 1729
Joined: Fri Nov 13, 2015 3:25 pm

Re: RMII Interface

Postby rudi ;-) » Thu Feb 16, 2017 4:08 am

Ankit Nikumbh wrote:Hi,

As I'm using Wroom-32 and I want to use RMII Interface then which pin provides 50MHz of clock output as a reference clock for PHY transceiver??? Either GPIO16(EMAC_CLOCK_OUT) or GPIO17(EMAC_CLOCK_OUT_180).....

And also, what will be the output of CLOCK_OUT1(IO0), CLOCK_OUT2(IO3) and CLOCK_OUT3(IO1)???

push!
1++


why this not work for use RMII CLK Out ?

Code: Select all

PIN_FUNC_SELECT(PERIPHS_IO_MUX_GPIO16_U, FUNC_GPIO16_EMAC_CLK_OUT);
what is missing, what is need, what we have to read?
see no CLK set. is this the standard 50MHz CLK or how we can set/use FUNC_GPIO16_EMAC_CLK_OUT
can we use this in silicon V1 ?


best wishes
rudi ;-)
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

RobinC
Posts: 45
Joined: Sat Feb 04, 2017 5:29 pm

Re: ESP32 ethernet, SPI, JTAG pin questions

Postby RobinC » Wed Feb 22, 2017 9:23 pm

push
1++

Does anyone in Espressif have any details on actually getting the emac to work with rmii (specifically with 50MHz clock out to clock the rmii)?

User avatar
rudi ;-)
Posts: 1729
Joined: Fri Nov 13, 2015 3:25 pm

Re: ESP32 ethernet, SPI, JTAG pin questions

Postby rudi ;-) » Wed Feb 22, 2017 10:25 pm

push
+1

https://github.com/espressif/esp-idf/issues/372

we play now more as 5 days only in this, now its time to say from espressif team:

- Yes it run..
- you must use this hardware...
- you must use this hardware reference ..
- here is the link


or


- no, just in time not supportet, its an theoretical example



I can not believe that this example was even tried at espressif and it works.
Recently a pin was added which switched the PHY Power.
https://github.com/espressif/esp-idf/co ... 134355011e

the ip get function is based on wifi station and ap ip function
https://esp32.com/viewtopic.php?f=2&t=1249&p=5518#p5518

btw the question is unanswered - not sure is this the reason for not get an ip

I hate this quiet question
We all sit at the pc and wait for reply!
And if it's just a "we're testing that ..."

:evil:
Last edited by rudi ;-) on Sun Feb 26, 2017 7:13 pm, edited 1 time in total.
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

RobinC
Posts: 45
Joined: Sat Feb 04, 2017 5:29 pm

Re: ESP32 ethernet, SPI, JTAG pin questions

Postby RobinC » Sun Feb 26, 2017 2:55 pm

Followup: got both tlk110 and lan8720 working. Key for me was physically routing CRS/DV to GPIO27. I'm using the onboard crystal/oscillator on the phy eval boards and haven't tried generating a clock from the ESP32.

Robin

colman
Posts: 37
Joined: Mon May 30, 2016 7:41 am

Re: ESP32 ethernet, SPI, JTAG pin questions

Postby colman » Wed Mar 01, 2017 9:47 am

Since GPIO0 is the strapping pin for booting mode, how do you handle it if it is used for RMII clock input? How do you disconnect it during reset?

Colman

User avatar
rudi ;-)
Posts: 1729
Joined: Fri Nov 13, 2015 3:25 pm

Re: ESP32 ethernet, SPI, JTAG pin questions

Postby rudi ;-) » Thu Mar 02, 2017 4:16 pm

colman wrote:Since GPIO0 is the strapping pin for booting mode, how do you handle it if it is used for RMII clock input? How do you disconnect it during reset?

Colman
clk disable

:mrgreen:
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

colman
Posts: 37
Joined: Mon May 30, 2016 7:41 am

Re: ESP32 ethernet, SPI, JTAG pin questions

Postby colman » Fri Mar 03, 2017 2:13 am

I am using LAN8720, it always output the 50MHz RMII clock even though it is being reset, there is no clock enable/disable option via software programming.

Colman

Who is online

Users browsing this forum: pmi2410 and 147 guests