From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24554 invoked by alias); 23 Jan 2014 17:06:22 -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 24540 invoked by uid 89); 23 Jan 2014 17:06:21 -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; Thu, 23 Jan 2014 17:06:15 +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 B1BAB234C013; Thu, 23 Jan 2014 17:06:12 +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 s0NH6CdX030043; Thu, 23 Jan 2014 17:06:12 GMT Message-ID: <52E14C04.30308@dallaway.org.uk> Date: Thu, 23 Jan 2014 17:06:00 -0000 From: John Dallaway User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130807 Thunderbird/17.0.8 MIME-Version: 1.0 To: Samuel Charnet CC: ecos-discuss@sourceware.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [ECOS] Re: STM32 ROMINT don't run X-SW-Source: 2014-01/txt/msg00023.txt.bz2 Hi Samuel On 22/01/14 17:24, Samuel Charnet wrote: > I want to try the ecos OS. My board come from waveshare, it is based > on stm32f407ig core ( http://www.wvshare.com/product/EVK407I.htm ) > > After some days I have ecos from CVS compiled. With the configtool I > have created my library with the stm3240 template and i have modified > the startup type to ROMINT > > I have a simple thread which blink a led. I can upload the binary file > to the stm32 (i use the last openocd from source and olimex > arm-usb-ocd-h jtag device) > > Unfortunately the led don't blink. With gdb i can't break on any > function and the stack seems broken. You may be observing the following issue: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001864 Try modifying hal/cortexm/arch/current/src/hal_misc.c to read as follows: > #if defined(CYG_HAL_STARTUP_ROM) || defined(CYG_HAL_STARTUP_ROMINT) > // Relocate data from ROM to RAM Does that resolve the issue for you? 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