before buying a development board I am trying to set up the open source tool chain. I folowed the tutorial by J P Lynch : Using Open Source Tools for AT91SAM7S Cross Development, Revision C. But I got stuck on page 115. I am able to clean the project but not to build. When I build (make -k -all) I get an error immediately: interrupt/exception caught. It looks like nothing is wrong with the source code but rather something with the make tool, the make file or with my system (WinXP64).
Does anybody have a clue on this? Is there a simpler project/makefile which I can use to start with?
Nine times out of ten, these things turn out to be a path problem; so let’s eliminate that first.
When Yagarto installs, Michael Fischer’s installers make additions to the Windows path environment variable to locate the compiler, linker, make utility and so on. It usually appends these path specifications to the end of your path variable. If you have paths to previous tool chains set up ahead of this; then Windows can be vectored to wrong tool and strange error messages will be the result.
Go to Start - Control Panel - System - Advanced - Environment Variables
Click on the path variable and then the Edit button. Check the current path variable and see if the yagarto variables are “headed off at the pass”. If so, move them to the front of the path string.
Check this out first and let us know how it turned out.
thanks for the reply. I will try that out and get back with the result. (I am currently not at that computer) However I am in doubt this will be the cause. I never installed anything similar. Also, if this were the cause, wouldn’t it prevent from executing the “clean all”?
(or whatever it takes to get command shell on your version of windows).
do:
arm-elf-gcc --version
Should report 4.2.1
make --version
Should report GNU Make 3.81 or thereabouts.
If either of these commands fails with “program not found” or similar, then you don’t have the right tools installed. Did you install the yagarto tools package (which includes make) or yagarto openocd package (which also includes make, I think)? You need one or the other.
By the way, I am not convinced that the ide is worth the effort … I spent ages trying to make it work and reverted back to the old school (C, Vim, make, gdb) and find it perfectly workable (running on Linux as it happens, but same combo works on windows).
C:\>arm-elf-gcc --version
arm-elf-gcc (GCC) 4.2.1
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
C:\>make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i686-pc-mingw32
I tried installing everything on another PC 32bit and there I didn’t seem to have any problems. So, I tried installing a 32bit OS on my 64bit platform (It was a bit of a boot headache but now I have Vista64, XP64 and XP32 on one system). Installing the toolchain on the XP32 running on 64bit hardware did the job. Everything seems to work ok. I have read on several places that there are issues with 64bit (it is not always clear to me if it is about compiling on 64 or compiling for 64). Anyway, I don’t have enough experience to make a clear statement about this.