This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: STM32F4 Discovery + LwIP
- From: John Dallaway <john at dallaway dot org dot uk>
- To: Valentin BOUSSON <ml-ecos at belphegor dot eu>
- Cc: eCos Discussion <ecos-discuss at sourceware dot org>
- Date: Tue, 25 Mar 2014 10:04:07 +0000
- Subject: Re: STM32F4 Discovery + LwIP
- Authentication-results: sourceware.org; auth=none
- References: <53313DCE dot 8030104 at belphegor dot eu>
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