|
STM32F4discovery+BB: Can't start Ethernet |
|
|
|
Sep 3 2015, 15:30
|
Местный
  
Группа: Участник
Сообщений: 328
Регистрация: 1-06-06
Из: USA
Пользователь №: 17 672

|
Everything is out of the box: hw and SW link Their example doesn't work. I found one problem: the default phy address should be 0 but they are using 1. The problem is that as soon as any packet is being sent by DMA to MAC DMA is staying busy and can't complete transaction... Does anyone have any WORKING example for this hardware combination? Or anything working with this phy(LAN8720A)? My code works without problem on STM32F4-eval with TI phy, but I need to make this phy work. Thanks.
--------------------
|
|
|
|
|
 |
Ответов
|
Sep 3 2015, 18:25
|
Частый гость
 
Группа: Свой
Сообщений: 105
Регистрация: 26-12-11
Из: Казань
Пользователь №: 69 101

|
I have this board(STM32F4DIS-BB + STM32F4DIS-LCD). All samples work fine. Optionally, you can disable the use of LCD in the project. You can try use this examples: https://yadi.sk/d/Eh67ntSbiraHA
|
|
|
|
|
Sep 4 2015, 12:16
|
Местный
  
Группа: Участник
Сообщений: 328
Регистрация: 1-06-06
Из: USA
Пользователь №: 17 672

|
Цитата(Сергей Борщ @ Sep 4 2015, 00:54)  Only if pin 10 RXER/PHYAD0 has no external pull-ups at power-up (read datasheet chapter 3.7.1). Check your hardware and STM32F4DIS-BB schematics carefuly, maybe you also have wrong connection of LED1/REGOFF and LED2/nINTSEL pins. This pin is going nowhere according to schematic. Are you saying that their schematic doesn't match their hardware?
--------------------
|
|
|
|
|
Sep 4 2015, 14:45
|
Частый гость
 
Группа: Свой
Сообщений: 105
Регистрация: 26-12-11
Из: Казань
Пользователь №: 69 101

|
Цитата(pitt @ Sep 4 2015, 15:16)  This pin is going nowhere according to schematic. Are you saying that their schematic doesn't match their hardware? This pin have internal pull-down. Also, "The LAN8720 may be configured to disregard the PHY address in SMI access write by setting the register bit 17.3 (PHYADBP)." But, in example "stm32f4dis_cd\Codes\STM32F4xx_Ethernet_Example\Project\FreeRTOS\httpserver_netconn\" all PHYAddress work. I set from 0 to 10, all work. Сan you send me the project? I check on my board
|
|
|
|
|
Sep 4 2015, 15:01
|
Местный
  
Группа: Участник
Сообщений: 328
Регистрация: 1-06-06
Из: USA
Пользователь №: 17 672

|
Цитата(Defin @ Sep 4 2015, 10:45)  This pin have internal pull-down. Also, "The LAN8720 may be configured to disregard the PHY address in SMI access write by setting the register bit 17.3 (PHYADBP)."
But, in example "stm32f4dis_cd\Codes\STM32F4xx_Ethernet_Example\Project\FreeRTOS\httpserver_netconn\" all PHYAddress work. I set from 0 to 10, all work. Сan you send me the project? I check on my board I surely can but I'm trying to run your project and can't see anything on the wire.... You can also download the example project - pretty much like yours - link is provided in my first post. Thanks. As to phy address: I wasn't able to talk to phy initially but don't have issues anymore after changing address to 0
--------------------
|
|
|
|
|
Sep 4 2015, 16:45
|
Местный
  
Группа: Участник
Сообщений: 328
Регистрация: 1-06-06
Из: USA
Пользователь №: 17 672

|
Цитата(Defin @ Sep 4 2015, 12:25)  I downloaded archive from first post, and run this project(in IAR 7.40): STM32F4DIS-BB Discover More Software Examples\STM32F4xx_Ethernet_Example\Project\FreeRTOS\httpserver_netconn\ #define USE_LCD in main.h commented, also in project settings(General Options) FPU value is set to None.
It's works with PhyAddr 1 and 0. Using MDK, shouldn't matter.
--------------------
|
|
|
|
|
Sep 4 2015, 16:56
|
Частый гость
 
Группа: Свой
Сообщений: 105
Регистрация: 26-12-11
Из: Казань
Пользователь №: 69 101

|
Цитата(pitt @ Sep 4 2015, 19:45)  Using MDK, shouldn't matter. Hmm, it's defect of board or MDK settings(or incompatible version). Try to install IAR and check example.
|
|
|
|
1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0
|
|
|