From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28798 invoked by alias); 25 Mar 2014 10:04:14 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 28787 invoked by uid 89); 25 Mar 2014 10:04:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: tetra.codeconfidence.com Received: from tetra.codeconfidence.com (HELO tetra.codeconfidence.com) (94.229.66.225) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 25 Mar 2014 10:04:10 +0000 Received: from cog.dallaway.org.uk (cpc1-cmbg10-0-0-cust34.5-4.cable.virginm.net [81.102.132.35]) by tetra.codeconfidence.com (Postfix) with ESMTP id E3809234C045; Tue, 25 Mar 2014 10:04:07 +0000 (GMT) Received: from cog.dallaway.org.uk (cog.dallaway.org.uk [127.0.0.1]) by cog.dallaway.org.uk (8.13.8/8.13.8) with ESMTP id s2PA47DG021824; Tue, 25 Mar 2014 10:04:07 GMT Message-ID: <53315497.4040903@dallaway.org.uk> Date: Tue, 25 Mar 2014 10:04:00 -0000 From: John Dallaway User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: Valentin BOUSSON CC: eCos Discussion References: <53313DCE.8030104@belphegor.eu> In-Reply-To: <53313DCE.8030104@belphegor.eu> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [ECOS] Re: STM32F4 Discovery + LwIP X-SW-Source: 2014-03/txt/msg00011.txt.bz2 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