From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23679 invoked by alias); 24 Aug 2011 11:35:40 -0000 Received: (qmail 23388 invoked by uid 22791); 24 Aug 2011 11:35:39 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-fx0-f49.google.com (HELO mail-fx0-f49.google.com) (209.85.161.49) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 24 Aug 2011 11:35:25 +0000 Received: by fxd20 with SMTP id 20so1134614fxd.36 for ; Wed, 24 Aug 2011 04:35:23 -0700 (PDT) Received: by 10.223.87.204 with SMTP id x12mr7061018fal.27.1314185723382; Wed, 24 Aug 2011 04:35:23 -0700 (PDT) Received: from sg-pc.belvok.com ([86.57.137.251]) by mx.google.com with ESMTPS id l22sm763255fam.37.2011.08.24.04.35.19 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 24 Aug 2011 04:35:21 -0700 (PDT) Date: Wed, 24 Aug 2011 11:35:00 -0000 From: Sergei Gavrikov To: Philipp Meier cc: ecos-discuss@ecos.sourceware.org In-Reply-To: <20110824103404.51600@gmx.net> Message-ID: References: <20110824103404.51600@gmx.net> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-1463803648-355388398-1314185722=:15631" X-IsSubscribed: yes 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 Subject: Re: [ECOS] ecos-3.0 current stm32 bug? X-SW-Source: 2011-08/txt/msg00039.txt.bz2 ---1463803648-355388398-1314185722=:15631 Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: 8BIT Content-length: 2582 On Wed, 24 Aug 2011, Philipp Meier wrote: > Hi all > > I have a firmware split into two parts: > 1. a "bootloader" > 2. a "application" > > I now need to move from Windows (cygwin) development environment to > Linux development environment and at the same time use the current > ecos version (i.e. what I get when I clone the ecos mercurial > repository) instead of the "original" (back in 2009) ecos-3.0 version. > > The situation is now as follows: > 1. I download (to my stm32 device) the Linux/ecos-current built > "bootloader" > 2. I download (to my stm32 device) the Linux/ecos-current built > "application" > 3. I start the application and in line 187 of file > 'hal/cortexm/arch/current/src/hal_msic.c' instead of branching to > 'hal_switch_state_vsr' it branches to 'hal_default_exception_vsr' > function! > > To analyze the problem I then: > 4. Downloaded (to my stm32 device) the cyginw/ecos-3.0 built > "bootloader" > 5. Still having the Linux/ecos-current built "application" > 6. And in line 187 (of the above mentioned file) it branches (as it > should) to 'hal_switch_state_vsr' and the application is starting up > and running fine! > > Who can give me a hint about > * what has been changed in ecos-current cortexm stm32 that could > cause this problem Hi Philipp, I think you can use Mercurial for that % hg tags | grep v3 ecos-v3_0-branchpoint 2821:b5a12bb6a634 % hg log -r ecos-v3_0-branchpoint:tip packages/hal/cortexm/arch | less -FRSX or (may be) % hg log --patch -r ecos-v3_0-branchpoint:tip \ packages/hal/cortexm/arch/current/src/hal_misc.c | less -FRSX etc. > * or what else I could analyze to find out why ecos-current (built on > Linux, arm-eabi-gcc (eCosCentric GNU tools 4.3.2-sw); under cygwin I > also used the arm-eabi-gcc version 4.3.2 pre-built by eCosCentric) Also you would check the Linux build for ecos-3.0 codebase # get old (working) code % hg update ecos-v3_0-branchpoint Rebuild your loader and application under Linux and try it (use fresh directories for builds). After all do not forget up-to-date eCos HG repository (hg update default). Feel free to submit a bug report (if you'll find something) via eCos Bugzilla System http://bugs.ecos.sourceware.org/ Sergei > Regards > Philipp > > -- > NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie! > Jetzt informieren: http://www.gmx.net/de/go/freephone > > -- > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos > and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss > ---1463803648-355388398-1314185722=:15631 Content-Type: text/plain; charset=us-ascii Content-length: 148 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss ---1463803648-355388398-1314185722=:15631--