Cannot get IP Address using Ethernet Example

xiongws
Posts: 1
Joined: Mon Jun 11, 2018 10:41 am

Cannot get IP Address using Ethernet Example

Postby xiongws » Mon Jun 11, 2018 11:26 am

HI,

I am using the ethernet example of esp32. The phy chip is ksz8081rnb. Now I encounter a problem. When I use dhcp to obtain the address, I can issue the dhcp discover BPDU normally. However, the emac receives the dhcp server's offer packet data incorrectly. I tried to print out the contents of the received message, but I think it is not right, is the content of emac_config.dma_erx[tmp_dirty].basic.desc2. The 4 desc register values are 0:01d08326
1:00004640
2:3ffba4b0
3:3ffbb390
The results obtained are as follows:
I (1163084) eth_example: ~~~~~~~~~~~
I (1163084) eth_example: ETHIP: 0.0.0.0
I (1163084) eth_example: ETHPMASK: 0.0.0.0
I (1163084) eth_example: ETHPGW: 0.0.0.0
I (1163084) eth_example: ~~~~~~~~~~~

Who is online

Users browsing this forum: No registered users and 190 guests