Hi Valentin On 25/03/14 08:26, Valentin BOUSSON wrote:
> Today, I have a problem to set up *LwIP* on my *STM32F4DISCOVERY* with > the standard extension board. > (http://www.st.com/web/catalog/tools/FM146/CL1984/SC720/SS1462/PF255417) > > I tried a lot of thing, as using the default configuration for eCos, > adding packages "Ethernet common drivers" and "LwIP stack". No confilct > appears, but an the stack doesn't seem to work at all. At minimum, you will need to add the CYGPKG_DEVS_ETH_PHY and CYGPKG_DEVS_ETH_CORTEXM_STM32 hardware packages to the "stm32f4discovery" target description record in packages/ecos.db. Actually, it would be preferable to create a new target description record for STM32F4-Discovery with STM32F4DIS-EXT. You might also be necessary to modify the the hal_system_init() function in the STM32F4-Discovery platform HAL to setup the ethernet hardware. Compare with the hal_system_init() function from the STM32x0G platform HAL. With these changes in place, you should be able to create a new eCos configuration for lwIP based on the eCos "lwip_eth" packages template. I hope this helps... John Dallaway eCos maintainer http://www.dallaway.org.uk/john -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
