cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 Discovery + CUBEMX + Ethernet (dp83848)

maku0
Associate
Posted on March 23, 2015 at 15:59

NOTE: edited by moderator on Oct 6th, 2016

Hello,

I have working example project for STM32F4 Discovery with dp83848 phy, from

[[this link/image has been flagged as malicious by our security scan software and has been deleted]]

Now I'm trying to run project generated with CubeMX, and program have timeouts during initial communication with dp83848. In function: MX_LWIP_Init/lwip_init ... low_level_init/HAL_ETH_ReadPHYRegister

Is there something I should configure manualy for this phy?

Are there any examples, running ethernet in CubeMX? I couln't find any.

Thanks for any advice.

#cubemx #stm32f4 #ethernet
1 REPLY 1
stm32cube-t
Senior III
Posted on March 27, 2015 at 19:41

NOTE: edited by moderator on Oct 6th, 2016

Hello,

STM32CubeMX does not provide example code for now, it generates only MCU initialization code.

By using the .ioc in attachment you will be able to generate the initialization code for the F4 discovery board reconfigured for Ethernet RMII.

You can also refer to the examples provided with the STM32Cube fw package available in the repository folder created by STM32CubeMX (STM32Cube folder in your user folder): ''C:\Users\<youraccount>\STM32Cube\STM32Cube_FW_F4_V1.4.0\Projects\STM324xG_EVAL\Applications\LwIP\LwIP_HTTP_Server_Raw�?

Note: the example is only provided for the Eval boardss since they come with an Ethernet Phy

________________

Attachments :

DiscoF4_LwIP_EthernetRMII.ioc : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzKB&d=%2Fa%2F0X0000000bLT%2F55nmuK2WjDmVIZTUR_P21suXJl9hHcoPROCdf23TkhE&asPdf=false