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 >